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/FunctionTimerCallback
intermediary net/minecraft/class_231
official fib
named name
intermediary comp_3693
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<FunctionTimerCallback> private final Identifier
The field for thename
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFunctionTimerCallback
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
call
(MinecraftServer minecraftServer, Timer<MinecraftServer> timer, long long2) final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<FunctionTimerCallback> getCodec()
final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/timer/FunctionTimerCallback;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_56685
Lnet/minecraft/class_231;field_56685:Lcom/mojang/serialization/MapCodec;
official a
Lfib;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FunctionTimerCallback
Creates an instance of aFunctionTimerCallback
record class.- Parameters:
name
- the value for thename
record component
-
-
Method Details
-
call
- Specified by:
call
in interfaceTimerCallback<MinecraftServer>
- Mappings:
Namespace Name Mixin selector named call
Lnet/minecraft/world/timer/FunctionTimerCallback;call(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/world/timer/Timer;J)V
intermediary method_967
Lnet/minecraft/class_231;method_967(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_236;J)V
official a
Lfib;a(Lnet/minecraft/server/MinecraftServer;Lfif;J)V
-
getCodec
- Specified by:
getCodec
in interfaceTimerCallback<MinecraftServer>
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/world/timer/TimerCallback;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_67704
Lnet/minecraft/class_234;method_67704()Lcom/mojang/serialization/MapCodec;
official a
Lfid;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 thename
record component.- Returns:
- the value of the
name
record component
-