public abstract class TubeModule
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
advancedConfig |
protected net.minecraft.util.Direction |
dir |
float |
higherBound |
float |
lowerBound |
static float |
MAX_VALUE |
protected TileEntityPressureTube |
pressureTube |
boolean |
shouldDrop |
protected boolean |
upgraded |
| Constructor and Description |
|---|
TubeModule(ItemTubeModule item) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInfo(java.util.List<net.minecraft.util.text.ITextComponent> curInfo) |
boolean |
canUpgrade() |
boolean |
equals(java.lang.Object o) |
net.minecraft.util.Direction |
getDirection() |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getDrops()
Returns the item(s) that this part drops.
|
protected double |
getHeight()
Get the module's height (in range 0..16 as passed to
Block.box(double, double, double, double, double, double) |
net.minecraft.item.Item |
getItem() |
int |
getRedstoneLevel() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.math.shapes.VoxelShape |
getShape() |
float |
getThreshold(int redstone) |
TileEntityPressureTube |
getTube() |
net.minecraft.util.ResourceLocation |
getType() |
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.
|
int |
hashCode() |
boolean |
isFake() |
boolean |
isInline() |
boolean |
isUpgraded() |
void |
markFake() |
boolean |
onActivated(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
void |
onNeighborBlockUpdate() |
void |
onNeighborTileUpdate() |
void |
onPlaced() |
void |
onRemoved() |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
sendDescriptionPacket() |
void |
setDirection(net.minecraft.util.Direction dir) |
void |
setTube(TileEntityPressureTube pressureTube) |
void |
update() |
void |
updateNeighbors() |
void |
upgrade() |
net.minecraft.nbt.CompoundNBT |
writeToNBT(net.minecraft.nbt.CompoundNBT nbt) |
public static final float MAX_VALUE
protected TileEntityPressureTube pressureTube
protected net.minecraft.util.Direction dir
protected boolean upgraded
public float lowerBound
public float higherBound
public boolean advancedConfig
public boolean shouldDrop
public TubeModule(ItemTubeModule item)
public void markFake()
public boolean isFake()
public void setTube(TileEntityPressureTube pressureTube)
public TileEntityPressureTube getTube()
public double getWidth()
Block.box(double, double, double, double, double, double)protected double getHeight()
Block.box(double, double, double, double, double, double)public float getThreshold(int redstone)
public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getDrops()
public net.minecraft.item.Item getItem()
public void setDirection(net.minecraft.util.Direction dir)
public net.minecraft.util.Direction getDirection()
public void readFromNBT(net.minecraft.nbt.CompoundNBT nbt)
public net.minecraft.nbt.CompoundNBT writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
public void update()
public void onNeighborTileUpdate()
public void onNeighborBlockUpdate()
public final net.minecraft.util.ResourceLocation getType()
public int getRedstoneLevel()
public void updateNeighbors()
public boolean isInline()
public void sendDescriptionPacket()
public void addInfo(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
public boolean canUpgrade()
public void upgrade()
public boolean isUpgraded()
public boolean onActivated(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
public boolean hasGui()
public net.minecraft.util.math.shapes.VoxelShape getShape()
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void onPlaced()
public void onRemoved()