Package net.minecraft.world.timer
Record Class FunctionTagTimerCallback
java.lang.Object
java.lang.Record
net.minecraft.world.timer.FunctionTagTimerCallback
- Record Components:
name-
- All Implemented Interfaces:
TimerCallback<MinecraftServer>
public record FunctionTagTimerCallback(Identifier name)
extends Record
implements TimerCallback<MinecraftServer>
- Mappings:
Namespace Name named net/minecraft/world/timer/FunctionTagTimerCallbackintermediary net/minecraft/class_229official ffmnamed nameintermediary comp_3694official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FunctionTagTimerCallback> private final IdentifierThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFunctionTagTimerCallbackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(MinecraftServer minecraftServer, Timer<MinecraftServer> timer, long long2) final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<FunctionTagTimerCallback> getCodec()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/timer/FunctionTagTimerCallback;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56686Lnet/minecraft/class_229;field_56686:Lcom/mojang/serialization/MapCodec;official aLffm;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FunctionTagTimerCallback
Creates an instance of aFunctionTagTimerCallbackrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
call
- Specified by:
callin interfaceTimerCallback<MinecraftServer>- Mappings:
Namespace Name Mixin selector named callLnet/minecraft/world/timer/FunctionTagTimerCallback;call(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/world/timer/Timer;J)Vintermediary method_962Lnet/minecraft/class_229;method_962(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_236;J)Vofficial aLffm;a(Lnet/minecraft/server/MinecraftServer;Lffp;J)V
-
getCodec
- Specified by:
getCodecin interfaceTimerCallback<MinecraftServer>- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/world/timer/TimerCallback;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_67704Lnet/minecraft/class_234;method_67704()Lcom/mojang/serialization/MapCodec;official aLffn;a()Lcom/mojang/serialization/MapCodec;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-