Class RandomOffsetPlacementModifier
java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
net.minecraft.world.gen.placementmodifier.RandomOffsetPlacementModifier
- Mappings:
Namespace Name official drb
intermediary net/minecraft/class_6732
named net/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomOffsetPlacementModifier>
private final IntProvider
private final IntProvider
Fields inherited from class net.minecraft.world.gen.placementmodifier.PlacementModifier
CODEC
-
Constructor Summary
ModifierConstructorDescriptionprivate
RandomOffsetPlacementModifier
(IntProvider xzSpread, IntProvider ySpread) -
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.getType()
horizontally
(IntProvider spreadXz) of
(IntProvider spreadXz, IntProvider spreadY) vertically
(IntProvider spreadY)
-
Field Details
-
MODIFIER_CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldrb;a:Lcom/mojang/serialization/Codec;
intermediary field_35419
Lnet/minecraft/class_6732;field_35419:Lcom/mojang/serialization/Codec;
named MODIFIER_CODEC
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/Codec;
-
spreadXz
- Mappings:
Namespace Name Mixin selector official c
Ldrb;c:Lbcz;
intermediary field_35420
Lnet/minecraft/class_6732;field_35420:Lnet/minecraft/class_6017;
named spreadXz
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;spreadXz:Lnet/minecraft/util/math/intprovider/IntProvider;
-
spreadY
- Mappings:
Namespace Name Mixin selector official d
Ldrb;d:Lbcz;
intermediary field_35421
Lnet/minecraft/class_6732;field_35421:Lnet/minecraft/class_6017;
named spreadY
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;spreadY:Lnet/minecraft/util/math/intprovider/IntProvider;
-
-
Constructor Details
-
RandomOffsetPlacementModifier
- Mappings:
Namespace Name Mixin selector official <init>
Ldrb;<init>(Lbcz;Lbcz;)V
intermediary <init>
Lnet/minecraft/class_6732;<init>(Lnet/minecraft/class_6017;Lnet/minecraft/class_6017;)V
named <init>
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;<init>(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Ldrb;a(Lbcz;Lbcz;)Ldrb;
intermediary method_39657
Lnet/minecraft/class_6732;method_39657(Lnet/minecraft/class_6017;Lnet/minecraft/class_6017;)Lnet/minecraft/class_6732;
named of
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;of(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;)Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;
-
vertically
- Mappings:
Namespace Name Mixin selector official a
Ldrb;a(Lbcz;)Ldrb;
intermediary method_39656
Lnet/minecraft/class_6732;method_39656(Lnet/minecraft/class_6017;)Lnet/minecraft/class_6732;
named vertically
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;vertically(Lnet/minecraft/util/math/intprovider/IntProvider;)Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;
-
horizontally
- Mappings:
Namespace Name Mixin selector official b
Ldrb;b(Lbcz;)Ldrb;
intermediary method_39658
Lnet/minecraft/class_6732;method_39658(Lnet/minecraft/class_6017;)Lnet/minecraft/class_6732;
named horizontally
Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;horizontally(Lnet/minecraft/util/math/intprovider/IntProvider;)Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;
-
getPositions
Applies this placement modifier to the given position.- Specified by:
getPositions
in classPlacementModifier
- Mappings:
Namespace Name Mixin selector official a_
Ldqz;a_(Ldqx;Lapd;Lgu;)Ljava/util/stream/Stream;
intermediary method_14452
Lnet/minecraft/class_6797;method_14452(Lnet/minecraft/class_5444;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
named getPositions
Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getPositions(Lnet/minecraft/world/gen/feature/FeaturePlacementContext;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;
-
getType
- Specified by:
getType
in classPlacementModifier
- Mappings:
Namespace Name Mixin selector official b
Ldqz;b()Ldra;
intermediary method_39615
Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;
named getType
Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getType()Lnet/minecraft/world/gen/placementmodifier/PlacementModifierType;
-