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 Details

    • name

      private final Identifier name
      The field for the name record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<FunctionTagTimerCallback> 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

      public FunctionTagTimerCallback(Identifier name)
      Creates an instance of a FunctionTagTimerCallback record class.
      Parameters:
      name - the value for the name record component
  • Method Details

    • call

      public void call(MinecraftServer minecraftServer, Timer<MinecraftServer> timer, long long2)
      Specified by:
      call in interface TimerCallback<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

      public com.mojang.serialization.MapCodec<FunctionTagTimerCallback> getCodec()
      Specified by:
      getCodec in interface TimerCallback<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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name

      public Identifier name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component