Changed block placer and breaker to support full rotation

This commit is contained in:
Robert S 2014-03-21 06:19:59 -04:00
parent e159f2466b
commit 5bae138f51
2 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,7 @@ public class TileBreaker extends TileBase implements IRotatable, IPacketReceiver
public TileBreaker() public TileBreaker()
{ {
super(Material.iron); super(Material.iron);
this.rotationMask = Byte.parseByte("111111", 2);
} }
public InternalInventoryHandler getInvHandler() public InternalInventoryHandler getInvHandler()

View file

@ -9,7 +9,9 @@ import calclavia.lib.render.RenderItemOverlayUtility;
import calclavia.lib.utility.LanguageUtility; import calclavia.lib.utility.LanguageUtility;
import calclavia.lib.utility.inventory.InternalInventoryHandler; import calclavia.lib.utility.inventory.InternalInventoryHandler;
import calclavia.lib.utility.inventory.InventoryUtility; import calclavia.lib.utility.inventory.InventoryUtility;
import com.google.common.io.ByteArrayDataInput; import com.google.common.io.ByteArrayDataInput;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
@ -20,7 +22,9 @@ import net.minecraft.network.packet.Packet;
import net.minecraft.util.ChatMessageComponent; import net.minecraft.util.ChatMessageComponent;
import net.minecraft.util.Icon; import net.minecraft.util.Icon;
import net.minecraftforge.common.ForgeDirection; import net.minecraftforge.common.ForgeDirection;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;
import resonantinduction.core.ResonantInduction; import resonantinduction.core.ResonantInduction;
import universalelectricity.api.vector.Vector3; import universalelectricity.api.vector.Vector3;
@ -44,6 +48,7 @@ public class TilePlacer extends TileInventory implements IRotatable, IPacketRece
super(Material.rock); super(Material.rock);
this.normalRender = false; this.normalRender = false;
this.maxSlots = 1; this.maxSlots = 1;
this.rotationMask = Byte.parseByte("111111", 2);
} }
public InternalInventoryHandler getInvHandler() public InternalInventoryHandler getInvHandler()