#1456 Allow wireless charger to be disabled with redstone

This commit is contained in:
tterrag1098 committed 2014-12-26 21:39:52 -05:00
1 parent 5dd479f5e6
commit 96beafa468
7 files changed
+30 -8

No files matched your search

@@ -2,7 +2,9 @@ package crazypants.util;
import io.netty.buffer.ByteBuf;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
@@ -21,6 +23,10 @@ public final class BlockCoord {
public BlockCoord(TileEntity tile) {
this(tile.xCoord, tile.yCoord, tile.zCoord);
}
public BlockCoord(Entity e) {
this(MathHelper.floor_double(e.posX), MathHelper.floor_double(e.posY), MathHelper.floor_double(e.posZ));
}
public BlockCoord(BlockCoord bc) {
x = bc.x;