Class PacketUpdatePressureBlock

java.lang.Object
me.desht.pneumaticcraft.common.network.LocationIntPacket
me.desht.pneumaticcraft.common.network.PacketUpdatePressureBlock

public class PacketUpdatePressureBlock extends LocationIntPacket
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
  • 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:
      toBytes in class LocationIntPacket
    • handle

      public void handle(Supplier<net.minecraftforge.network.NetworkEvent.Context> ctx)