Class PacketUpdatePressureBlock
java.lang.Object
me.desht.pneumaticcraft.common.network.LocationIntPacket
me.desht.pneumaticcraft.common.network.PacketUpdatePressureBlock
Received on: CLIENT
Sent periodically from server to sync pressure level:
- For pressure tubes with an attached pressure gauge module
- For air grate modules, when the pressure changes enough to modify the range
- For machine air handlers which are currently leaking
-
Field Summary
Fields inherited from class me.desht.pneumaticcraft.common.network.LocationIntPacket
pos -
Constructor Summary
ConstructorsConstructorDescriptionPacketUpdatePressureBlock(net.minecraft.network.FriendlyByteBuf buffer) PacketUpdatePressureBlock(net.minecraft.world.level.block.entity.BlockEntity te, net.minecraft.core.Direction handlerDir, net.minecraft.core.Direction leakDir, int currentAir) -
Method Summary
-
Constructor Details
-
PacketUpdatePressureBlock
public PacketUpdatePressureBlock(net.minecraft.world.level.block.entity.BlockEntity te, net.minecraft.core.Direction handlerDir, net.minecraft.core.Direction leakDir, int currentAir) -
PacketUpdatePressureBlock
public PacketUpdatePressureBlock(net.minecraft.network.FriendlyByteBuf buffer)
-
-
Method Details
-
toBytes
public void toBytes(net.minecraft.network.FriendlyByteBuf buf) - Overrides:
toBytesin classLocationIntPacket
-
handle
-