mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 22:44:34 +00:00
#1456 Allow wireless charger to be disabled with redstone
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user