Class PressureGaugeModule
java.lang.Object
me.desht.pneumaticcraft.common.tubemodules.AbstractTubeModule
me.desht.pneumaticcraft.common.tubemodules.AbstractRedstoneEmittingModule
me.desht.pneumaticcraft.common.tubemodules.PressureGaugeModule
-
Field Summary
Fields inherited from class me.desht.pneumaticcraft.common.tubemodules.AbstractRedstoneEmittingModule
redstoneFields inherited from class me.desht.pneumaticcraft.common.tubemodules.AbstractTubeModule
advancedConfig, dir, higherBound, lowerBound, MAX_VALUE, pressureTube, upgraded -
Constructor Summary
ConstructorsConstructorDescriptionPressureGaugeModule(net.minecraft.core.Direction dir, PressureTubeBlockEntity pressureTube) -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleGet the module's height (in range 0..16 as passed toBlock.box(double, double, double, double, double, double)net.minecraft.world.item.ItemgetItem()doublegetWidth()Get the module's width (in range 0..16 as passed toBlock.box(double, double, double, double, double, double)booleanhasGui()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.booleanonActivated(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) voidreadFromNBT(net.minecraft.nbt.CompoundTag tag) booleanvoidnet.minecraft.nbt.CompoundTagwriteToNBT(net.minecraft.nbt.CompoundTag tag) Methods inherited from class me.desht.pneumaticcraft.common.tubemodules.AbstractRedstoneEmittingModule
addInfo, getRedstoneLevel, tickCommonMethods inherited from class me.desht.pneumaticcraft.common.tubemodules.AbstractTubeModule
canUpgrade, equals, getDirection, getDrops, getRenderBoundingBox, getShape, getThreshold, getTube, getType, hashCode, isFake, isInline, isInlineAndFocused, isUpgraded, isValid, markFake, onNeighborBlockUpdate, onNeighborTileUpdate, onPlaced, onRemoved, sendDescriptionPacket, setChanged, tickClient, updateNeighbors, upgrade
-
Constructor Details
-
PressureGaugeModule
-
-
Method Details
-
getItem
public net.minecraft.world.item.Item getItem()- Specified by:
getItemin classAbstractTubeModule
-
tickServer
public void tickServer()- Overrides:
tickServerin classAbstractTubeModule
-
onActivated
public boolean onActivated(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
onActivatedin classAbstractTubeModule
-
shouldShowGauge
public boolean shouldShowGauge() -
getWidth
public double getWidth()Description copied from class:AbstractTubeModuleGet the module's width (in range 0..16 as passed toBlock.box(double, double, double, double, double, double)- Overrides:
getWidthin classAbstractTubeModule- Returns:
- the width
-
getHeight
protected double getHeight()Description copied from class:AbstractTubeModuleGet the module's height (in range 0..16 as passed toBlock.box(double, double, double, double, double, double)- Overrides:
getHeightin classAbstractTubeModule- Returns:
- the height
-
hasGui
public boolean hasGui()Description copied from class:AbstractTubeModuleDoes 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.- Overrides:
hasGuiin classAbstractTubeModule- Returns:
- true if the module has a gui
-
writeToNBT
public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag tag) - Overrides:
writeToNBTin classAbstractRedstoneEmittingModule
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) - Overrides:
readFromNBTin classAbstractRedstoneEmittingModule
-