Record Class DynamicPartRenderer.BEState
java.lang.Object
java.lang.Record
codechicken.multipart.api.part.render.DynamicPartRenderer.BEState
- Record Components:
pos- The block position.packedLight- The packed lightmap.breakProgress- The break progress.
- Enclosing interface:
DynamicPartRenderer<P extends MultiPart,S>
public static record DynamicPartRenderer.BEState(net.minecraft.core.BlockPos pos, int packedLight, @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay breakProgress)
extends Record
Contains properties from the base
BlockEntityRenderState that are relevant to parts.-
Constructor Summary
ConstructorsConstructorDescriptionBEState(net.minecraft.core.BlockPos pos, int packedLight, @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 thepackedLightrecord 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 packedLight, @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay breakProgress) Creates an instance of aBEStaterecord class.- Parameters:
pos- the value for theposrecord componentpackedLight- the value for thepackedLightrecord 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
-
packedLight
public int packedLight()Returns the value of thepackedLightrecord component.- Returns:
- the value of the
packedLightrecord 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
-