public class WireSystem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WireSystem.WireElement |
Modifier and Type | Field and Description |
---|---|
net.minecraft.item.EnumDyeColor |
color |
java.util.List<WireSystem.WireElement> |
elements |
Constructor and Description |
---|
WireSystem() |
Modifier and Type | Method and Description |
---|---|
WireSystem |
build(WorldSavedDataWireSystems wireSystems,
WireSystem.WireElement startElement) |
static boolean |
canWireConnect(IPipeHolder holder,
net.minecraft.util.EnumFacing side)
Checks to see if the given holder could connect a wire across the specified side even if a matching wire wasn't
there.
|
boolean |
equals(java.lang.Object o) |
java.util.List<net.minecraft.util.math.ChunkPos> |
getChunkPoses() |
static java.util.List<WireSystem.WireElement> |
getConnectedElementsOfElement(IPipeHolder holder,
WireSystem.WireElement element) |
static java.util.List<WireSystem.WireElement> |
getConnectedElementsOfElement(net.minecraft.world.World world,
WireSystem.WireElement element) |
int |
getWiresHashCode() |
boolean |
hasElement(WireSystem.WireElement element) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isPlayerWatching(net.minecraft.entity.player.EntityPlayerMP player) |
WireSystem |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
boolean |
update(WorldSavedDataWireSystems wireSystems) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT() |
public final java.util.List<WireSystem.WireElement> elements
public net.minecraft.item.EnumDyeColor color
public boolean hasElement(WireSystem.WireElement element)
public static boolean canWireConnect(IPipeHolder holder, net.minecraft.util.EnumFacing side)
public static java.util.List<WireSystem.WireElement> getConnectedElementsOfElement(IPipeHolder holder, WireSystem.WireElement element)
public static java.util.List<WireSystem.WireElement> getConnectedElementsOfElement(net.minecraft.world.World world, WireSystem.WireElement element)
public WireSystem build(WorldSavedDataWireSystems wireSystems, WireSystem.WireElement startElement)
public boolean isEmpty()
public boolean update(WorldSavedDataWireSystems wireSystems)
public java.util.List<net.minecraft.util.math.ChunkPos> getChunkPoses()
public boolean isPlayerWatching(net.minecraft.entity.player.EntityPlayerMP player)
public int getWiresHashCode()
public net.minecraft.nbt.NBTTagCompound writeToNBT()
public WireSystem readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object