Record Class OutlineRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.render.state.OutlineRenderState
- Record Components:
pos-isTranslucent-highContrast-shape-collisionShape-occlusionShape-interactionShape-
@Environment(CLIENT)
public record OutlineRenderState(BlockPos pos, boolean isTranslucent, boolean highContrast, VoxelShape shape, @Nullable VoxelShape collisionShape, @Nullable VoxelShape occlusionShape, @Nullable VoxelShape interactionShape)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/state/OutlineRenderStateintermediary net/minecraft/class_12074official ibnnamed posintermediary comp_4932official anamed isTranslucentintermediary comp_4933official bnamed highContrastintermediary comp_4934official cnamed shapeintermediary comp_4935official dnamed collisionShapeintermediary comp_4936official enamed occlusionShapeintermediary comp_4937official fnamed interactionShapeintermediary comp_4938official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable VoxelShapeThe field for thecollisionShaperecord component.private final booleanThe field for thehighContrastrecord component.private final @Nullable VoxelShapeThe field for theinteractionShaperecord component.private final booleanThe field for theisTranslucentrecord component.private final @Nullable VoxelShapeThe field for theocclusionShaperecord component.private final BlockPosThe field for theposrecord component.private final VoxelShapeThe field for theshaperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOutlineRenderState(BlockPos pos, boolean isTranslucent, boolean highContrast, VoxelShape shape) OutlineRenderState(BlockPos blockPos, boolean bool, boolean bool2, VoxelShape voxelShape, @Nullable VoxelShape voxelShape2, @Nullable VoxelShape voxelShape3, @Nullable VoxelShape voxelShape4) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollisionShaperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehighContrastrecord component.Returns the value of theinteractionShaperecord component.booleanReturns the value of theisTranslucentrecord component.Returns the value of theocclusionShaperecord component.pos()Returns the value of theposrecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
isTranslucent
private final boolean isTranslucentThe field for theisTranslucentrecord component. -
highContrast
private final boolean highContrastThe field for thehighContrastrecord component. -
shape
The field for theshaperecord component. -
collisionShape
The field for thecollisionShaperecord component. -
occlusionShape
The field for theocclusionShaperecord component. -
interactionShape
The field for theinteractionShaperecord component.
-
-
Constructor Details
-
OutlineRenderState
public OutlineRenderState(BlockPos pos, boolean isTranslucent, boolean highContrast, VoxelShape shape) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/state/OutlineRenderState;<init>(Lnet/minecraft/util/math/BlockPos;ZZLnet/minecraft/util/shape/VoxelShape;)Vintermediary <init>Lnet/minecraft/class_12074;<init>(Lnet/minecraft/class_2338;ZZLnet/minecraft/class_265;)Vofficial <init>Libn;<init>(Lja;ZZLfpc;)V
-
OutlineRenderState
public OutlineRenderState(BlockPos blockPos, boolean bool, boolean bool2, VoxelShape voxelShape, @Nullable @Nullable VoxelShape voxelShape2, @Nullable @Nullable VoxelShape voxelShape3, @Nullable @Nullable VoxelShape voxelShape4)
-
-
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
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
isTranslucent
public boolean isTranslucent()Returns the value of theisTranslucentrecord component.- Returns:
- the value of the
isTranslucentrecord component
-
highContrast
public boolean highContrast()Returns the value of thehighContrastrecord component.- Returns:
- the value of the
highContrastrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
collisionShape
Returns the value of thecollisionShaperecord component.- Returns:
- the value of the
collisionShaperecord component
-
occlusionShape
Returns the value of theocclusionShaperecord component.- Returns:
- the value of the
occlusionShaperecord component
-
interactionShape
Returns the value of theinteractionShaperecord component.- Returns:
- the value of the
interactionShaperecord component
-