Package net.minecraft

Record Class class_9566.class_9567

java.lang.Object
java.lang.Record
net.minecraft.class_9566.class_9567
Record Components:
newState -
oldState -
Enclosing class:
class_9566

public static record class_9566.class_9567(BlockState newState, BlockState oldState) extends Record
Mappings:
Namespace Name
official dno$a
intermediary net/minecraft/class_9566$class_9567
named net/minecraft/class_9566$class_9567
official a
intermediary comp_2582
named newState
official b
intermediary comp_2583
named oldState
  • Field Details

    • newState

      private final BlockState newState
      The field for the newState record component.
    • oldState

      private final BlockState oldState
      The field for the oldState record component.
  • Constructor Details

  • Method Details

    • method_59159

      public List<ItemStack> method_59159(ServerWorld serverWorld, BlockPos blockPos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldno$a;a(Laqt;Lir;Layt;)Ljava/util/List;
      intermediary method_59159 Lnet/minecraft/class_9566$class_9567;method_59159(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Ljava/util/List;
      named method_59159 Lnet/minecraft/class_9566$class_9567;method_59159(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
    • 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.
    • newState

      public BlockState newState()
      Returns the value of the newState record component.
      Returns:
      the value of the newState record component
    • oldState

      public BlockState oldState()
      Returns the value of the oldState record component.
      Returns:
      the value of the oldState record component