Package net.minecraft.world.timer
Record Class FunctionTimerCallback
java.lang.Object
java.lang.Record
net.minecraft.world.timer.FunctionTimerCallback
- Record Components:
name-
- All Implemented Interfaces:
TimerCallback<MinecraftServer>
public record FunctionTimerCallback(Identifier name)
extends Record
implements TimerCallback<MinecraftServer>
- Mappings:
Namespace Name named net/minecraft/world/timer/FunctionTimerCallbackintermediary net/minecraft/class_231official fflnamed nameintermediary comp_3693official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FunctionTimerCallback> private final IdentifierThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFunctionTimerCallbackrecord 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<FunctionTimerCallback> 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/FunctionTimerCallback;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56685Lnet/minecraft/class_231;field_56685:Lcom/mojang/serialization/MapCodec;official aLffl;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FunctionTimerCallback
Creates an instance of aFunctionTimerCallbackrecord 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/FunctionTimerCallback;call(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/world/timer/Timer;J)Vintermediary method_967Lnet/minecraft/class_231;method_967(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_236;J)Vofficial aLffl;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
-