Record Class CountOnEveryLayerPlacement
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.placement.CountOnEveryLayerPlacement
- All Implemented Interfaces:
PlacementModifier
@Deprecated
public record CountOnEveryLayerPlacement(IntProvider count)
extends Record
implements PlacementModifier
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CountOnEveryLayerPlacement> Deprecated.private final IntProviderDeprecated.The field for thecountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates an instance of aCountOnEveryLayerPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<CountOnEveryLayerPlacement> codec()Deprecated.count()Deprecated.Returns the value of thecountrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.private static intfindOnGroundYPosition(PlacementContext context, int xStart, int yStart, int zStart, int layerToPlaceOn) Deprecated.final inthashCode()Deprecated.Returns a hash code value for this object.private static booleanisEmpty(BlockState blockState) Deprecated.voidmodify(PlacementContext context, RandomSource random, BlockPos origin, Consumer<BlockPos> output) Deprecated.static CountOnEveryLayerPlacementof(int count) Deprecated.static CountOnEveryLayerPlacementof(IntProvider count) Deprecated.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Field Details
-
count
-
CODEC
Deprecated.
-
-
Constructor Details
-
CountOnEveryLayerPlacement
Deprecated.Creates an instance of aCountOnEveryLayerPlacementrecord class.- Parameters:
count- the value for thecountrecord component
-
-
Method Details
-
of
Deprecated. -
of
Deprecated. -
modify
public void modify(PlacementContext context, RandomSource random, BlockPos origin, Consumer<BlockPos> output) Deprecated.- Specified by:
modifyin interfacePlacementModifier
-
codec
Deprecated.- Specified by:
codecin interfacePlacementModifier
-
findOnGroundYPosition
private static int findOnGroundYPosition(PlacementContext context, int xStart, int yStart, int zStart, int layerToPlaceOn) Deprecated. -
isEmpty
Deprecated. -
toString
-
hashCode
-
equals
Deprecated.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). -
count
Deprecated.Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-