Contents
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
Record to store fluid changes for transform/paste operations.
-
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.
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-