Record Class BlockBreakingRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.level.BlockBreakingRenderState
public record BlockBreakingRenderState(BlockPos blockPos, BlockState blockState, int progress)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for theblockPosrecord component.private final BlockStateThe field for theblockStaterecord component.private final intThe field for theprogressrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockBreakingRenderState(BlockPos blockPos, BlockState blockState, int progress) Creates an instance of aBlockBreakingRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionblockPos()Returns the value of theblockPosrecord component.Returns the value of theblockStaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intprogress()Returns the value of theprogressrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockPos
The field for theblockPosrecord component. -
blockState
The field for theblockStaterecord component. -
progress
private final int progressThe field for theprogressrecord component.
-
-
Constructor Details
-
BlockBreakingRenderState
Creates an instance of aBlockBreakingRenderStaterecord class.- Parameters:
blockPos- the value for theblockPosrecord componentblockState- the value for theblockStaterecord componentprogress- the value for theprogressrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
blockPos
Returns the value of theblockPosrecord component.- Returns:
- the value of the
blockPosrecord component
-
blockState
Returns the value of theblockStaterecord component.- Returns:
- the value of the
blockStaterecord component
-
progress
public int progress()Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-