Record Class BoundingBoxRenderable.RenderableBox
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.BoundingBoxRenderable.RenderableBox
- Enclosing interface:
BoundingBoxRenderable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRenderableBox(BlockPos localPos, Vec3i size) Creates an instance of aRenderableBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromCorners(int x1, int y1, int z1, int x2, int y2, int z2) final inthashCode()Returns a hash code value for this object.localPos()Returns the value of thelocalPosrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
localPos
The field for thelocalPosrecord component. -
size
The field for thesizerecord component.
-
-
Constructor Details
-
RenderableBox
-
-
Method Details
-
fromCorners
public static BoundingBoxRenderable.RenderableBox fromCorners(int x1, int y1, int z1, int x2, int y2, int z2) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
localPos
Returns the value of thelocalPosrecord component.- Returns:
- the value of the
localPosrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-