Record Class FixedPlacement
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.placement.FixedPlacement
- All Implemented Interfaces:
PlacementModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FixedPlacement> The field for thepositionsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFixedPlacement(List<BlockPos> positions) Creates an instance of aFixedPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<FixedPlacement> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static booleanisSameChunk(int chunkX, int chunkZ, BlockPos position) voidmodify(PlacementContext context, RandomSource random, BlockPos origin, Consumer<BlockPos> output) static FixedPlacementReturns the value of thepositionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
positions
-
CODEC
-
-
Constructor Details
-
FixedPlacement
-
-
Method Details
-
of
-
modify
public void modify(PlacementContext context, RandomSource random, BlockPos origin, Consumer<BlockPos> output) - Specified by:
modifyin interfacePlacementModifier
-
isSameChunk
-
codec
- Specified by:
codecin interfacePlacementModifier
-
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
-