Class BeaconDataPacket

java.lang.Object
com.hammy275.immersivemc.common.network.packet.BeaconDataPacket

public class BeaconDataPacket extends Object
  • Field Details

    • pos

      public final net.minecraft.core.BlockPos pos
    • powerIndex

      public final int powerIndex
    • useRegen

      public final boolean useRegen
  • Constructor Details

    • BeaconDataPacket

      public BeaconDataPacket(net.minecraft.core.BlockPos pos, int powerIndex, boolean useRegen)
    • BeaconDataPacket

      public BeaconDataPacket(net.minecraft.core.BlockPos pos)
  • Method Details

    • fromBeacon

      public static BeaconDataPacket fromBeacon(net.minecraft.world.level.block.entity.BeaconBlockEntity beacon)
    • encode

      public static void encode(BeaconDataPacket packet, net.minecraft.network.FriendlyByteBuf buffer)
    • decode

      public static BeaconDataPacket decode(net.minecraft.network.FriendlyByteBuf buffer)
    • handle

      public static void handle(BeaconDataPacket packet, net.minecraft.server.level.ServerPlayer player)