public class ModuleLogistics extends TubeModule implements INetworkedModule
advancedConfig, dir, higherBound, lowerBound, MAX_VALUE, pressureTube, shouldDrop, upgraded| Constructor and Description |
|---|
ModuleLogistics(ItemTubeModule itemTubeModule) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInfo(java.util.List<net.minecraft.util.text.ITextComponent> curInfo) |
boolean |
canUpgrade() |
int |
getColorChannel() |
EntityLogisticsFrame |
getFrame() |
protected double |
getHeight()
Get the module's height (in range 0..16 as passed to
Block.box(double, double, double, double, double, double) |
int |
getTicksSinceAction() |
int |
getTicksSinceNotEnoughAir() |
double |
getWidth()
Get the module's width (in range 0..16 as passed to
Block.box(double, double, double, double, double, double) |
boolean |
hasGui()
Does this module have a gui? Server also needs to know about this, since module GUI's are opened in response
to a packet from the server.
|
boolean |
hasPower() |
boolean |
onActivated(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
void |
onUpdatePacket(int status,
int colorChannel) |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
setColorChannel(int colorChannel) |
void |
update() |
net.minecraft.nbt.CompoundNBT |
writeToNBT(net.minecraft.nbt.CompoundNBT nbt) |
equals, getDirection, getDrops, getItem, getRedstoneLevel, getRenderBoundingBox, getShape, getThreshold, getTube, getType, hashCode, isFake, isInline, isUpgraded, markFake, onNeighborBlockUpdate, onNeighborTileUpdate, onPlaced, onRemoved, sendDescriptionPacket, setDirection, setTube, updateNeighbors, upgradepublic ModuleLogistics(ItemTubeModule itemTubeModule)
public int getTicksSinceAction()
public int getTicksSinceNotEnoughAir()
public double getWidth()
TubeModuleBlock.box(double, double, double, double, double, double)getWidth in class TubeModuleprotected double getHeight()
TubeModuleBlock.box(double, double, double, double, double, double)getHeight in class TubeModulepublic int getColorChannel()
getColorChannel in interface INetworkedModulepublic void setColorChannel(int colorChannel)
setColorChannel in interface INetworkedModulepublic boolean hasGui()
TubeModulehasGui in class TubeModulepublic boolean hasPower()
public void onUpdatePacket(int status,
int colorChannel)
public net.minecraft.nbt.CompoundNBT writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
writeToNBT in class TubeModulepublic void readFromNBT(net.minecraft.nbt.CompoundNBT nbt)
readFromNBT in class TubeModulepublic EntityLogisticsFrame getFrame()
public boolean onActivated(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
onActivated in class TubeModulepublic void update()
update in class TubeModulepublic void addInfo(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
addInfo in class TubeModulepublic boolean canUpgrade()
canUpgrade in class TubeModule