Record Class SceneData.MapFrameData
java.lang.Object
java.lang.Record
com.soulfiremc.server.renderer.SceneData.MapFrameData
- Enclosing class:
SceneData
public static record SceneData.MapFrameData(net.minecraft.world.phys.AABB bbox, net.minecraft.core.Direction direction, double posX, double posY, double posZ, int rotation, byte[] colors)
extends Record
Pre-computed data for an item frame containing a map.
-
Constructor Summary
ConstructorsConstructorDescriptionMapFrameData(net.minecraft.world.phys.AABB bbox, net.minecraft.core.Direction direction, double posX, double posY, double posZ, int rotation, byte[] colors) Creates an instance of aMapFrameDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABBbbox()Returns the value of thebboxrecord component.byte[]colors()Returns the value of thecolorsrecord component.net.minecraft.core.DirectionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleposX()Returns the value of theposXrecord component.doubleposY()Returns the value of theposYrecord component.doubleposZ()Returns the value of theposZrecord component.introtation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MapFrameData
public MapFrameData(net.minecraft.world.phys.AABB bbox, net.minecraft.core.Direction direction, double posX, double posY, double posZ, int rotation, byte[] colors) Creates an instance of aMapFrameDatarecord class.- Parameters:
bbox- the value for thebboxrecord componentdirection- the value for thedirectionrecord componentposX- the value for theposXrecord componentposY- the value for theposYrecord componentposZ- the value for theposZrecord componentrotation- the value for therotationrecord componentcolors- the value for thecolorsrecord 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. -
bbox
public net.minecraft.world.phys.AABB bbox()Returns the value of thebboxrecord component.- Returns:
- the value of the
bboxrecord component
-
direction
public net.minecraft.core.Direction direction()Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
posX
public double posX()Returns the value of theposXrecord component.- Returns:
- the value of the
posXrecord component
-
posY
public double posY()Returns the value of theposYrecord component.- Returns:
- the value of the
posYrecord component
-
posZ
public double posZ()Returns the value of theposZrecord component.- Returns:
- the value of the
posZrecord component
-
rotation
public int rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
colors
public byte[] colors()Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-