Class UpdateBeaconC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.UpdateBeaconC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class UpdateBeaconC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private intprimaryEffectIdprivate intsecondaryEffectId -
Constructor Summary
Constructors Constructor Description UpdateBeaconC2SPacket()UpdateBeaconC2SPacket(int primaryEffectId, int secondaryEffectId) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)intgetPrimaryEffectId()intgetSecondaryEffectId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
primaryEffectId
private int primaryEffectId -
secondaryEffectId
private int secondaryEffectId
-
-
Constructor Details
-
UpdateBeaconC2SPacket
public UpdateBeaconC2SPacket() -
UpdateBeaconC2SPacket
@Environment(CLIENT) public UpdateBeaconC2SPacket(int primaryEffectId, int secondaryEffectId)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
getPrimaryEffectId
public int getPrimaryEffectId() -
getSecondaryEffectId
public int getSecondaryEffectId()
-