Record Class MachineChemicalPlantVboRenderer.FluidVisual
java.lang.Object
java.lang.Record
com.hbm_m.client.render.implementations.MachineChemicalPlantVboRenderer.FluidVisual
- Enclosing class:
- MachineChemicalPlantVboRenderer
public static record MachineChemicalPlantVboRenderer.FluidVisual(dev.architectury.fluid.FluidStack textureFluid, float r, float g, float b)
extends Record
Цвет/текстура для fallback; основной путь — mesh с
chemical_plant_fluid.-
Constructor Summary
ConstructorsConstructorDescriptionFluidVisual(dev.architectury.fluid.FluidStack textureFluid, float r, float g, float b) Creates an instance of aFluidVisualrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatb()Returns the value of thebrecord component.final booleanIndicates whether some other object is "equal to" this one.floatg()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.floatr()Returns the value of therrecord component.dev.architectury.fluid.FluidStackReturns the value of thetextureFluidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FluidVisual
public FluidVisual(dev.architectury.fluid.FluidStack textureFluid, float r, float g, float b) Creates an instance of aFluidVisualrecord class.- Parameters:
textureFluid- the value for thetextureFluidrecord componentr- the value for therrecord componentg- the value for thegrecord componentb- the value for thebrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
textureFluid
public dev.architectury.fluid.FluidStack textureFluid()Returns the value of thetextureFluidrecord component.- Returns:
- the value of the
textureFluidrecord component
-
r
public float r()Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
g
public float g()Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-
b
public float b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-