Package net.minecraft.component.type
Record Class LodestoneTargetComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.LodestoneTargetComponent
- Record Components:
pos
-tracked
-
- Mappings:
Namespace Name official cuc
intermediary net/minecraft/class_9291
named net/minecraft/component/type/LodestoneTargetComponent
official c
intermediary comp_2402
named pos
official d
intermediary comp_2403
named tracked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<LodestoneTargetComponent> static final PacketCodec
<ByteBuf, LodestoneTargetComponent> private final GlobalPos
The field for thepos
record component.private final boolean
The field for thetracked
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isInvalid
(ServerWorld world) pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.boolean
tracked()
Returns the value of thetracked
record component.
-
Field Details
-
pos
The field for thepos
record component. -
tracked
private final boolean trackedThe field for thetracked
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcuc;a:Lcom/mojang/serialization/Codec;
intermediary field_49345
Lnet/minecraft/class_9291;field_49345:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/component/type/LodestoneTargetComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official b
Lcuc;b:Lye;
intermediary field_49346
Lnet/minecraft/class_9291;field_49346:Lnet/minecraft/class_9139;
named PACKET_CODEC
Lnet/minecraft/component/type/LodestoneTargetComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
LodestoneTargetComponent
-
-
Method Details
-
isInvalid
- Mappings:
Namespace Name Mixin selector official a
Lcuc;a(Laps;)Z
intermediary method_57501
Lnet/minecraft/class_9291;method_57501(Lnet/minecraft/class_3218;)Z
named isInvalid
Lnet/minecraft/component/type/LodestoneTargetComponent;isInvalid(Lnet/minecraft/server/world/ServerWorld;)Z
-
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 '=='. -
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
tracked
public boolean tracked()Returns the value of thetracked
record component.- Returns:
- the value of the
tracked
record component
-