Record Class RemoveEntityStatusEffectS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.RemoveEntityStatusEffectS2CPacket
- Record Components:
entityId
-effectType
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record RemoveEntityStatusEffectS2CPacket(int entityId, RegistryEntry<StatusEffect> effectType)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official abk
intermediary net/minecraft/class_2718
named net/minecraft/network/packet/s2c/play/RemoveEntityStatusEffectS2CPacket
official a
intermediary comp_2175
named entityId
official b
intermediary comp_2176
named effectType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry<StatusEffect>
The field for theeffectType
record component.private final int
The field for theentityId
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRemoveEntityStatusEffectS2CPacket
(int entityId, RegistryEntry<StatusEffect> registryEntry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) Returns the value of theeffectType
record component.int
entityId()
Returns the value of theentityId
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
entityId
private final int entityIdThe field for theentityId
record component. -
effectType
The field for theeffectType
record component.
-
-
Constructor Details
-
RemoveEntityStatusEffectS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Labk;<init>(Luj;)V
intermediary <init>
Lnet/minecraft/class_2718;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/RemoveEntityStatusEffectS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
RemoveEntityStatusEffectS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Labk;<init>(ILih;)V
intermediary <init>
Lnet/minecraft/class_2718;<init>(ILnet/minecraft/class_6880;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/RemoveEntityStatusEffectS2CPacket;<init>(ILnet/minecraft/registry/entry/RegistryEntry;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lxg;a(Luj;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Labk;a(Lzb;)V
intermediary method_11769
Lnet/minecraft/class_2718;method_11769(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/RemoveEntityStatusEffectS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getEntity
- Mappings:
Namespace Name Mixin selector official a
Labk;a(Lctx;)Lblw;
intermediary method_11767
Lnet/minecraft/class_2718;method_11767(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1297;
named getEntity
Lnet/minecraft/network/packet/s2c/play/RemoveEntityStatusEffectS2CPacket;getEntity(Lnet/minecraft/world/World;)Lnet/minecraft/entity/Entity;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
entityId
public int entityId()Returns the value of theentityId
record component.- Returns:
- the value of the
entityId
record component
-
effectType
Returns the value of theeffectType
record component.- Returns:
- the value of the
effectType
record component
-