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/FunctionTagTimerCallback
intermediary net/minecraft/class_229
official ffm
named name
intermediary comp_3694
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<FunctionTagTimerCallback> private final Identifier
The field for thename
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFunctionTagTimerCallback
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
<FunctionTagTimerCallback> 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/FunctionTagTimerCallback;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_56686
Lnet/minecraft/class_229;field_56686:Lcom/mojang/serialization/MapCodec;
official a
Lffm;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FunctionTagTimerCallback
Creates an instance of aFunctionTagTimerCallback
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/FunctionTagTimerCallback;call(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/world/timer/Timer;J)V
intermediary method_962
Lnet/minecraft/class_229;method_962(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_236;J)V
official a
Lffm;a(Lnet/minecraft/server/MinecraftServer;Lffp;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
Lffn;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
-