Package net.minecraft.component.type
Record Class LodestoneTrackerComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.LodestoneTrackerComponent
- Record Components:
target-tracked-exits-
public record LodestoneTrackerComponent(Optional<GlobalPos> target, boolean tracked, boolean exits)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/LodestoneTrackerComponentintermediary net/minecraft/class_9291official dfrnamed targetintermediary comp_2402official cnamed trackedintermediary comp_2403official dnamed exitsintermediary comp_3944official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LodestoneTrackerComponent> private final booleanThe field for theexitsrecord component.static final PacketCodec<ByteBuf, LodestoneTrackerComponent> The field for thetargetrecord component.private final booleanThe field for thetrackedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLodestoneTrackerComponent(Optional<GlobalPos> optional, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexits()Returns the value of theexitsrecord component.forWorld(BlockPos blockPos, ServerWorld serverWorld) final inthashCode()Returns a hash code value for this object.method_69585(BlockPos blockPos, ServerWorld serverWorld) target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.booleantracked()Returns the value of thetrackedrecord component.
-
Field Details
-
target
The field for thetargetrecord component. -
tracked
private final boolean trackedThe field for thetrackedrecord component. -
exits
private final boolean exitsThe field for theexitsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/LodestoneTrackerComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49345Lnet/minecraft/class_9291;field_49345:Lcom/mojang/serialization/Codec;official aLdfr;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/LodestoneTrackerComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49346Lnet/minecraft/class_9291;field_49346:Lnet/minecraft/class_9139;official bLdfr;b:Lzg;
-
-
Constructor Details
-
LodestoneTrackerComponent
-
-
Method Details
-
forWorld
- Mappings:
Namespace Name Mixin selector named forWorldLnet/minecraft/component/type/LodestoneTrackerComponent;forWorld(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/component/type/LodestoneTrackerComponent;intermediary method_58115Lnet/minecraft/class_9291;method_58115(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Lnet/minecraft/class_9291;official aLdfr;a(Lix;Last;)Ldfr;
-
method_69585
@Nullable public static @Nullable LodestoneTrackerComponent method_69585(BlockPos blockPos, ServerWorld serverWorld) - Mappings:
Namespace Name Mixin selector named method_69585Lnet/minecraft/component/type/LodestoneTrackerComponent;method_69585(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/component/type/LodestoneTrackerComponent;intermediary method_69585Lnet/minecraft/class_9291;method_69585(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Lnet/minecraft/class_9291;official bLdfr;b(Lix;Last;)Ldfr;
-
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 '=='. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
tracked
public boolean tracked()Returns the value of thetrackedrecord component.- Returns:
- the value of the
trackedrecord component
-
exits
public boolean exits()Returns the value of theexitsrecord component.- Returns:
- the value of the
exitsrecord component
-