Skip to content

Commit

Permalink
Change to new Mantle DebugData
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunstrike committed Dec 10, 2013
1 parent 62e14d4 commit 61ef610
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.properties
@@ -1,6 +1,6 @@
minecraft_version=1.6.4
forge_version=9.11.1.964
mantle_version=b4348c
mantle_version=caa5f6
FMP_version=1.0.0.211
CCLIB_version=1.0.0.44
NEI_version=1.6.1.5_d1
16 changes: 9 additions & 7 deletions src/main/java/tconstruct/blocks/logic/SmelteryLogic.java
@@ -1,9 +1,8 @@
package tconstruct.blocks.logic;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.*;

import mantle.debug.DebugData;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
Expand All @@ -30,6 +29,7 @@
import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
import net.minecraftforge.fluids.IFluidTank;
import org.apache.commons.lang3.ArrayUtils;
import tconstruct.common.TRepo;
import tconstruct.inventory.SmelteryContainer;
import mantle.blocks.abstracts.InventoryLogic;
Expand Down Expand Up @@ -1153,10 +1153,12 @@ public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
this.needsUpdate = true;
}

// IDebuggable
@Override
public void sendDebugToPlayer(EntityPlayer player) {
super.sendDebugToPlayer(player);
player.addChatMessage("[SmelteryLogic] layers: " + layers + ", liquid: " + currentLiquid + "/" + maxLiquid + ", direction: " + direction);
player.addChatMessage("[SmelteryLogic] inUse: " + inUse + ", tick: " + tick);
public DebugData getDebugInfo(EntityPlayer player) {
List<String> str = new ArrayList<String>(Arrays.asList(super.getDebugInfo(player).strings));
str.add("layers: " + layers + ", liquid: " + currentLiquid + "/" + maxLiquid + ", direction: " + direction);
str.add("inUse: " + inUse + ", tick: " + tick);
return new DebugData(player, getClass(), str.toArray(new String[str.size()]));
}
}

0 comments on commit 61ef610

Please sign in to comment.