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$FluidLevelintermediary net/minecraft/class_6350$class_6351official ehb$bnamed yintermediary comp_2967official anamed stateintermediary comp_2968official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateThe field for thestaterecord component.private final intThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFluidLevel(int y, BlockState state) Creates an instance of aFluidLevelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getBlockState(int y) final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.inty()Returns the value of theyrecord component.
-
Field Details
-
Constructor Details
-
Method Details
-
getBlockState
- Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/world/gen/chunk/AquiferSampler$FluidLevel;getBlockState(I)Lnet/minecraft/block/BlockState;intermediary method_38318Lnet/minecraft/class_6350$class_6351;method_38318(I)Lnet/minecraft/class_2680;official aLehb$b;a(I)Lebq;
-
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 theyrecord component.- Returns:
- the value of the
yrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-