Package net.minecraft.world.gen.chunk
Record Class AquiferSampler.FluidLevel
java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.AquiferSampler.FluidLevel
- Record Components:
y
-state
-
- Enclosing interface:
AquiferSampler
- 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
Modifier and TypeFieldDescriptionprivate final BlockState
The field for thestate
record component.private final int
The field for they
record component. -
Constructor Summary
ConstructorDescriptionFluidLevel
(int y, BlockState state) Creates an instance of aFluidLevel
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getBlockState
(int y) final int
hashCode()
Returns a hash code value for this object.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.int
y()
Returns the value of they
record component.
-
Field Details
-
Constructor Details
-
Method Details
-
getBlockState
- 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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
y
public int y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-