Record Class PartRenderer.BEState
java.lang.Object
java.lang.Record
codechicken.multipart.api.part.render.PartRenderer.BEState
- Enclosing interface:
PartRenderer<T extends MultiPart,S>
public static record PartRenderer.BEState(net.minecraft.core.BlockPos pos, int lightCoords, @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay breakProgress)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBEState(net.minecraft.core.BlockPos pos, int lightCoords, @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay breakProgress) Creates an instance of aBEStaterecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlayReturns the value of thebreakProgressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelightCoordsrecord component.net.minecraft.core.BlockPospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BEState
public BEState(net.minecraft.core.BlockPos pos, int lightCoords, @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay breakProgress) Creates an instance of aBEStaterecord class.- Parameters:
pos- the value for theposrecord componentlightCoords- the value for thelightCoordsrecord componentbreakProgress- the value for thebreakProgressrecord 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 '=='. -
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
lightCoords
public int lightCoords()Returns the value of thelightCoordsrecord component.- Returns:
- the value of the
lightCoordsrecord component
-
breakProgress
public @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay breakProgress()Returns the value of thebreakProgressrecord component.- Returns:
- the value of the
breakProgressrecord component
-