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 official dpi
intermediary net/minecraft/class_6759
named net/minecraft/world/tick/Tick
official b
intermediary comp_248
named type
official c
intermediary comp_249
named pos
official d
intermediary comp_250
named delay
official e
intermediary comp_251
named priority
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thedelay
record component.private static final String
static final Hash.Strategy<Tick<?>>
private final BlockPos
The field for thepos
record component.private final TickPriority
The field for thepriority
record component.private static final String
private final T
The field for thetype
record component.private static final String
private static final String
private static final String
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tick<T>
createOrderedTick
(long time, long subTickOrder) int
delay()
Returns the value of thedelay
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.static <T> NbtCompound
orderedTickToNbt
(OrderedTick<T> orderedTick, Function<T, String> typeToNameFunction, long delay) pos()
Returns the value of thepos
record component.priority()
Returns the value of thepriority
record component.static <T> void
tick
(NbtList tickList, Function<String, Optional<T>> nameToTypeFunction, ChunkPos pos, Consumer<Tick<T>> tickConsumer) private static NbtCompound
toNbt
(String type, BlockPos pos, int delay, TickPriority priority) final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
pos
The field for thepos
record component. -
delay
private final int delayThe field for thedelay
record component. -
priority
The field for thepriority
record component. -
TYPE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldpi;f:Ljava/lang/String;
intermediary field_35543
Lnet/minecraft/class_6759;field_35543:Ljava/lang/String;
named TYPE_NBT_KEY
Lnet/minecraft/world/tick/Tick;TYPE_NBT_KEY:Ljava/lang/String;
-
X_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldpi;g:Ljava/lang/String;
intermediary field_35544
Lnet/minecraft/class_6759;field_35544:Ljava/lang/String;
named X_NBT_KEY
Lnet/minecraft/world/tick/Tick;X_NBT_KEY:Ljava/lang/String;
-
Y_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official h
Ldpi;h:Ljava/lang/String;
intermediary field_35545
Lnet/minecraft/class_6759;field_35545:Ljava/lang/String;
named Y_NBT_KEY
Lnet/minecraft/world/tick/Tick;Y_NBT_KEY:Ljava/lang/String;
-
Z_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official i
Ldpi;i:Ljava/lang/String;
intermediary field_35546
Lnet/minecraft/class_6759;field_35546:Ljava/lang/String;
named Z_NBT_KEY
Lnet/minecraft/world/tick/Tick;Z_NBT_KEY:Ljava/lang/String;
-
DELAY_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official j
Ldpi;j:Ljava/lang/String;
intermediary field_35547
Lnet/minecraft/class_6759;field_35547:Ljava/lang/String;
named DELAY_NBT_KEY
Lnet/minecraft/world/tick/Tick;DELAY_NBT_KEY:Ljava/lang/String;
-
PRIORITY_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official k
Ldpi;k:Ljava/lang/String;
intermediary field_35548
Lnet/minecraft/class_6759;field_35548:Ljava/lang/String;
named PRIORITY_NBT_KEY
Lnet/minecraft/world/tick/Tick;PRIORITY_NBT_KEY:Ljava/lang/String;
-
HASH_STRATEGY
- Mappings:
Namespace Name Mixin selector official a
Ldpi;a:Lit/unimi/dsi/fastutil/Hash$Strategy;
intermediary field_35542
Lnet/minecraft/class_6759;field_35542:Lit/unimi/dsi/fastutil/Hash$Strategy;
named HASH_STRATEGY
Lnet/minecraft/world/tick/Tick;HASH_STRATEGY:Lit/unimi/dsi/fastutil/Hash$Strategy;
-
-
Constructor Details
-
Tick
Tick(T t, BlockPos blockPos, int int2, TickPriority tickPriority)
-
-
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 official a
Ldpi;a(Loh;Ljava/util/function/Function;Lbzd;Ljava/util/function/Consumer;)V
intermediary method_39406
Lnet/minecraft/class_6759;method_39406(Lnet/minecraft/class_2499;Ljava/util/function/Function;Lnet/minecraft/class_1923;Ljava/util/function/Consumer;)V
named tick
Lnet/minecraft/world/tick/Tick;tick(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Function;Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/Consumer;)V
-
toNbt
- Mappings:
Namespace Name Mixin selector official a
Ldpi;a(Ljava/lang/String;Lgh;ILdpn;)Lob;
intermediary method_39403
Lnet/minecraft/class_6759;method_39403(Ljava/lang/String;Lnet/minecraft/class_2338;ILnet/minecraft/class_1953;)Lnet/minecraft/class_2487;
named toNbt
Lnet/minecraft/world/tick/Tick;toNbt(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/TickPriority;)Lnet/minecraft/nbt/NbtCompound;
-
orderedTickToNbt
public static <T> NbtCompound orderedTickToNbt(OrderedTick<T> orderedTick, Function<T, String> typeToNameFunction, long delay) - Mappings:
Namespace Name Mixin selector official a
Ldpi;a(Ldpj;Ljava/util/function/Function;J)Lob;
intermediary method_39401
Lnet/minecraft/class_6759;method_39401(Lnet/minecraft/class_6760;Ljava/util/function/Function;J)Lnet/minecraft/class_2487;
named orderedTickToNbt
Lnet/minecraft/world/tick/Tick;orderedTickToNbt(Lnet/minecraft/world/tick/OrderedTick;Ljava/util/function/Function;J)Lnet/minecraft/nbt/NbtCompound;
-
toNbt
- Mappings:
Namespace Name Mixin selector official a
Ldpi;a(Ljava/util/function/Function;)Lob;
intermediary method_39404
Lnet/minecraft/class_6759;method_39404(Ljava/util/function/Function;)Lnet/minecraft/class_2487;
named toNbt
Lnet/minecraft/world/tick/Tick;toNbt(Ljava/util/function/Function;)Lnet/minecraft/nbt/NbtCompound;
-
createOrderedTick
- Mappings:
Namespace Name Mixin selector official a
Ldpi;a(JJ)Ldpj;
intermediary method_39400
Lnet/minecraft/class_6759;method_39400(JJ)Lnet/minecraft/class_6760;
named createOrderedTick
Lnet/minecraft/world/tick/Tick;createOrderedTick(JJ)Lnet/minecraft/world/tick/OrderedTick;
-
create
- Mappings:
Namespace Name Mixin selector official a
Ldpi;a(Ljava/lang/Object;Lgh;)Ldpi;
intermediary method_39402
Lnet/minecraft/class_6759;method_39402(Ljava/lang/Object;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6759;
named create
Lnet/minecraft/world/tick/Tick;create(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/tick/Tick;
-
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 thetype
record component.- Returns:
- the value of the
type
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
delay
public int delay()Returns the value of thedelay
record component.- Returns:
- the value of the
delay
record component
-
priority
Returns the value of thepriority
record component.- Returns:
- the value of the
priority
record component
-