Record Class PrototypePlayerBuilderToolSettings.FluidChange
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.PrototypePlayerBuilderToolSettings.FluidChange
- Enclosing class:
PrototypePlayerBuilderToolSettings
public static record PrototypePlayerBuilderToolSettings.FluidChange(int x, int y, int z, int fluidId, byte fluidLevel)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefluidIdrecord component.private final byteThe field for thefluidLevelrecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component.private final intThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFluidChange(int x, int y, int z, int fluidId, byte fluidLevel) Creates an instance of aFluidChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfluidId()Returns the value of thefluidIdrecord component.byteReturns the value of thefluidLevelrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Field Details
-
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
z
private final int zThe field for thezrecord component. -
fluidId
private final int fluidIdThe field for thefluidIdrecord component. -
fluidLevel
private final byte fluidLevelThe field for thefluidLevelrecord component.
-
-
Constructor Details
-
FluidChange
public FluidChange(int x, int y, int z, int fluidId, byte fluidLevel) Creates an instance of aFluidChangerecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentfluidId- the value for thefluidIdrecord componentfluidLevel- the value for thefluidLevelrecord component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
fluidId
public int fluidId()Returns the value of thefluidIdrecord component.- Returns:
- the value of the
fluidIdrecord component
-
fluidLevel
public byte fluidLevel()Returns the value of thefluidLevelrecord component.- Returns:
- the value of the
fluidLevelrecord component
-