Record Class AquiferSampler.FluidLevel

java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.AquiferSampler.FluidLevel
Record Components:
y -
state -
Enclosing interface:
AquiferSampler

public static record AquiferSampler.FluidLevel(int y, BlockState state) extends Record
Mappings:
Namespace Name
named net/minecraft/world/gen/chunk/AquiferSampler$FluidLevel
intermediary net/minecraft/class_6350$class_6351
official edb$b
named y
intermediary comp_2967
official a
named state
intermediary comp_2968
official b
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final BlockState
    The field for the state record component.
    private final int
    The field for the y record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FluidLevel(int y, BlockState state)
    Creates an instance of a FluidLevel record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
     
    final int
    Returns a hash code value for this object.
    Returns the value of the state record component.
    final String
    Returns a string representation of this record class.
    int
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • y

      private final int y
      The field for the y record component.
    • state

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

    • FluidLevel

      public FluidLevel(int y, BlockState state)
      Creates an instance of a FluidLevel record class.
      Parameters:
      y - the value for the y record component
      state - the value for the state record component
  • Method Details

    • getBlockState

      public BlockState getBlockState(int y)
      Mappings:
      Namespace Name Mixin selector
      named getBlockState Lnet/minecraft/world/gen/chunk/AquiferSampler$FluidLevel;getBlockState(I)Lnet/minecraft/block/BlockState;
      intermediary method_38318 Lnet/minecraft/class_6350$class_6351;method_38318(I)Lnet/minecraft/class_2680;
      official a Ledb$b;a(I)Ldxu;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • state

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