Class BeaconDataPacket
java.lang.Object
com.hammy275.immersivemc.common.network.packet.BeaconDataPacket
-
Field Summary
Modifier and TypeFieldDescriptionfinal net.minecraft.core.BlockPos
final int
final boolean
-
Constructor Summary
ConstructorDescriptionBeaconDataPacket
(net.minecraft.core.BlockPos pos) BeaconDataPacket
(net.minecraft.core.BlockPos pos, int powerIndex, boolean useRegen) -
Method Summary
Modifier and TypeMethodDescriptionstatic BeaconDataPacket
decode
(net.minecraft.network.FriendlyByteBuf buffer) static void
encode
(BeaconDataPacket packet, net.minecraft.network.FriendlyByteBuf buffer) static BeaconDataPacket
fromBeacon
(net.minecraft.world.level.block.entity.BeaconBlockEntity beacon) static void
handle
(BeaconDataPacket packet, net.minecraft.server.level.ServerPlayer player)
-
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
-
decode
-
handle
-