Record Class PositionedBlockStatePalette
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.block.collection.PositionedBlockStatePalette
- All Implemented Interfaces:
BlockCollection, CustomRegistryOwnTypeProvider<io.netty.buffer.ByteBuf, BlockCollection>, CustomRegistryValue<io.netty.buffer.ByteBuf, BlockCollection>, RefOptimizer<BlockCollection>, WithKey, WithRef<BlockCollection>
public record PositionedBlockStatePalette(List<net.minecraft.core.BlockPos> positions, Ref<BlockStatePalette> palette)
extends Record
implements BlockCollection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DynamicType<io.netty.buffer.ByteBuf, BlockCollection> Fields inherited from interface BlockCollection
CODEC, DATA_TYPE, EMPTY, REGISTRY, STREAM_CODECFields inherited from interface WithKey
COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionPositionedBlockStatePalette(List<net.minecraft.core.BlockPos> positions, Ref<BlockStatePalette> palette) Creates an instance of aPositionedBlockStatePaletterecord 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.palette()Returns the value of thepaletterecord component.List<net.minecraft.core.BlockPos> Returns the value of thepositionsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface BlockCollection
getRegistryMethods inherited from interface CustomRegistryOwnTypeProvider
typeMethods inherited from interface CustomRegistryValue
optionalKey, refMethods inherited from interface RefOptimizer
optimize
-
Field Details
-
TYPE
-
-
Constructor Details
-
PositionedBlockStatePalette
public PositionedBlockStatePalette(List<net.minecraft.core.BlockPos> positions, Ref<BlockStatePalette> palette) Creates an instance of aPositionedBlockStatePaletterecord class.- Parameters:
positions- the value for thepositionsrecord componentpalette- the value for thepaletterecord 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). -
positions
Returns the value of thepositionsrecord component.- Returns:
- the value of the
positionsrecord component
-
palette
Returns the value of thepaletterecord component.- Returns:
- the value of the
paletterecord component
-