Package net.minecraft.world.tick
Record Class Tick<T>
java.lang.Object
java.lang.Record
net.minecraft.world.tick.Tick<T>
- Record Components:
type-pos-delay-priority-
- Mappings:
Namespace Name named net/minecraft/world/tick/Tickintermediary net/minecraft/class_6759official eysnamed typeintermediary comp_248official bnamed posintermediary comp_249official cnamed delayintermediary comp_250official dnamed priorityintermediary comp_251official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedelayrecord component.private static final Stringstatic final Hash.Strategy<Tick<?>> private final BlockPosThe field for theposrecord component.private final TickPriorityThe field for thepriorityrecord component.private static final Stringprivate final TThe field for thetyperecord component.private static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tick<T> createOrderedTick(long time, long subTickOrder) intdelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.fromNbt(NbtCompound nbt, Function<String, Optional<T>> nameToType) final inthashCode()Returns a hash code value for this object.static <T> NbtCompoundorderedTickToNbt(OrderedTick<T> orderedTick, Function<T, String> typeToNameFunction, long delay) pos()Returns the value of theposrecord component.priority()Returns the value of thepriorityrecord component.static <T> voidtick(NbtList tickList, Function<String, Optional<T>> nameToTypeFunction, ChunkPos pos, Consumer<Tick<T>> tickConsumer) private static NbtCompoundtoNbt(String type, BlockPos pos, int delay, TickPriority priority) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
pos
The field for theposrecord component. -
delay
private final int delayThe field for thedelayrecord component. -
priority
The field for thepriorityrecord component. -
TYPE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named TYPE_NBT_KEYLnet/minecraft/world/tick/Tick;TYPE_NBT_KEY:Ljava/lang/String;intermediary field_35543Lnet/minecraft/class_6759;field_35543:Ljava/lang/String;official fLeys;f:Ljava/lang/String;
-
X_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named X_NBT_KEYLnet/minecraft/world/tick/Tick;X_NBT_KEY:Ljava/lang/String;intermediary field_35544Lnet/minecraft/class_6759;field_35544:Ljava/lang/String;official gLeys;g:Ljava/lang/String;
-
Y_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named Y_NBT_KEYLnet/minecraft/world/tick/Tick;Y_NBT_KEY:Ljava/lang/String;intermediary field_35545Lnet/minecraft/class_6759;field_35545:Ljava/lang/String;official hLeys;h:Ljava/lang/String;
-
Z_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named Z_NBT_KEYLnet/minecraft/world/tick/Tick;Z_NBT_KEY:Ljava/lang/String;intermediary field_35546Lnet/minecraft/class_6759;field_35546:Ljava/lang/String;official iLeys;i:Ljava/lang/String;
-
DELAY_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DELAY_NBT_KEYLnet/minecraft/world/tick/Tick;DELAY_NBT_KEY:Ljava/lang/String;intermediary field_35547Lnet/minecraft/class_6759;field_35547:Ljava/lang/String;official jLeys;j:Ljava/lang/String;
-
PRIORITY_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PRIORITY_NBT_KEYLnet/minecraft/world/tick/Tick;PRIORITY_NBT_KEY:Ljava/lang/String;intermediary field_35548Lnet/minecraft/class_6759;field_35548:Ljava/lang/String;official kLeys;k:Ljava/lang/String;
-
HASH_STRATEGY
- Mappings:
Namespace Name Mixin selector named HASH_STRATEGYLnet/minecraft/world/tick/Tick;HASH_STRATEGY:Lit/unimi/dsi/fastutil/Hash$Strategy;intermediary field_35542Lnet/minecraft/class_6759;field_35542:Lit/unimi/dsi/fastutil/Hash$Strategy;official aLeys;a:Lit/unimi/dsi/fastutil/Hash$Strategy;
-
-
Constructor Details
-
Tick
-
-
Method Details
-
tick
public static <T> void tick(NbtList tickList, Function<String, Optional<T>> nameToTypeFunction, ChunkPos pos, Consumer<Tick<T>> tickConsumer) - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/world/tick/Tick;tick(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Function;Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/Consumer;)Vintermediary method_39406Lnet/minecraft/class_6759;method_39406(Lnet/minecraft/class_2499;Ljava/util/function/Function;Lnet/minecraft/class_1923;Ljava/util/function/Consumer;)Vofficial aLeys;a(Luh;Ljava/util/function/Function;Ldcd;Ljava/util/function/Consumer;)V
-
fromNbt
public static <T> Optional<Tick<T>> fromNbt(NbtCompound nbt, Function<String, Optional<T>> nameToType) - Mappings:
Namespace Name Mixin selector named fromNbtLnet/minecraft/world/tick/Tick;fromNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Function;)Ljava/util/Optional;intermediary method_40559Lnet/minecraft/class_6759;method_40559(Lnet/minecraft/class_2487;Ljava/util/function/Function;)Ljava/util/Optional;official aLeys;a(Lub;Ljava/util/function/Function;)Ljava/util/Optional;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/world/tick/Tick;toNbt(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/tick/TickPriority;)Lnet/minecraft/nbt/NbtCompound;intermediary method_39403Lnet/minecraft/class_6759;method_39403(Ljava/lang/String;Lnet/minecraft/class_2338;ILnet/minecraft/class_1953;)Lnet/minecraft/class_2487;official aLeys;a(Ljava/lang/String;Ljd;ILeyx;)Lub;
-
orderedTickToNbt
public static <T> NbtCompound orderedTickToNbt(OrderedTick<T> orderedTick, Function<T, String> typeToNameFunction, long delay) - Mappings:
Namespace Name Mixin selector named orderedTickToNbtLnet/minecraft/world/tick/Tick;orderedTickToNbt(Lnet/minecraft/world/tick/OrderedTick;Ljava/util/function/Function;J)Lnet/minecraft/nbt/NbtCompound;intermediary method_39401Lnet/minecraft/class_6759;method_39401(Lnet/minecraft/class_6760;Ljava/util/function/Function;J)Lnet/minecraft/class_2487;official aLeys;a(Leyt;Ljava/util/function/Function;J)Lub;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/world/tick/Tick;toNbt(Ljava/util/function/Function;)Lnet/minecraft/nbt/NbtCompound;intermediary method_39404Lnet/minecraft/class_6759;method_39404(Ljava/util/function/Function;)Lnet/minecraft/class_2487;official aLeys;a(Ljava/util/function/Function;)Lub;
-
createOrderedTick
- Mappings:
Namespace Name Mixin selector named createOrderedTickLnet/minecraft/world/tick/Tick;createOrderedTick(JJ)Lnet/minecraft/world/tick/OrderedTick;intermediary method_39400Lnet/minecraft/class_6759;method_39400(JJ)Lnet/minecraft/class_6760;official aLeys;a(JJ)Leyt;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/tick/Tick;create(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/tick/Tick;intermediary method_39402Lnet/minecraft/class_6759;method_39402(Ljava/lang/Object;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6759;official aLeys;a(Ljava/lang/Object;Ljd;)Leys;
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
delay
public int delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-