Record Class PositionedColoredShape
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.shape.PositionedColoredShape
public record PositionedColoredShape(net.minecraft.world.phys.Vec3 position, ColoredShape shape)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PositionedColoredShape> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, PositionedColoredShape> -
Constructor Summary
ConstructorsConstructorDescriptionPositionedColoredShape(net.minecraft.world.phys.Vec3 position, ColoredShape shape) Creates an instance of aPositionedColoredShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.phys.Vec3position()Returns the value of thepositionrecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, PositionedColoredShape> STREAM_CODEC
-
-
Constructor Details
-
PositionedColoredShape
Creates an instance of aPositionedColoredShaperecord class.- Parameters:
position- the value for thepositionrecord componentshape- the value for theshaperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
position
public net.minecraft.world.phys.Vec3 position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-