Class RandomOffsetPlacementModifier

java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
net.minecraft.world.gen.placementmodifier.RandomOffsetPlacementModifier

public class RandomOffsetPlacementModifier extends PlacementModifier
Mappings:
Namespace Name
named net/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier
intermediary net/minecraft/class_6732
official eiv
  • Field Details

    • MODIFIER_CODEC

      public static final com.mojang.serialization.MapCodec<RandomOffsetPlacementModifier> MODIFIER_CODEC
      Mappings:
      Namespace Name Mixin selector
      named MODIFIER_CODEC Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_35419 Lnet/minecraft/class_6732;field_35419:Lcom/mojang/serialization/MapCodec;
      official a Leiv;a:Lcom/mojang/serialization/MapCodec;
    • spreadXz

      private final IntProvider spreadXz
      Mappings:
      Namespace Name Mixin selector
      named spreadXz Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;spreadXz:Lnet/minecraft/util/math/intprovider/IntProvider;
      intermediary field_35420 Lnet/minecraft/class_6732;field_35420:Lnet/minecraft/class_6017;
      official c Leiv;c:Lbpv;
    • spreadY

      private final IntProvider spreadY
      Mappings:
      Namespace Name Mixin selector
      named spreadY Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;spreadY:Lnet/minecraft/util/math/intprovider/IntProvider;
      intermediary field_35421 Lnet/minecraft/class_6732;field_35421:Lnet/minecraft/class_6017;
      official d Leiv;d:Lbpv;
  • Constructor Details

    • RandomOffsetPlacementModifier

      private RandomOffsetPlacementModifier(IntProvider xzSpread, IntProvider ySpread)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;<init>(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;)V
      intermediary <init> Lnet/minecraft/class_6732;<init>(Lnet/minecraft/class_6017;Lnet/minecraft/class_6017;)V
      official <init> Leiv;<init>(Lbpv;Lbpv;)V
  • Method Details

    • of

      public static RandomOffsetPlacementModifier of(IntProvider spreadXz, IntProvider spreadY)
      Mappings:
      Namespace Name Mixin selector
      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;
      intermediary method_39657 Lnet/minecraft/class_6732;method_39657(Lnet/minecraft/class_6017;Lnet/minecraft/class_6017;)Lnet/minecraft/class_6732;
      official a Leiv;a(Lbpv;Lbpv;)Leiv;
    • vertically

      public static RandomOffsetPlacementModifier vertically(IntProvider spreadY)
      Mappings:
      Namespace Name Mixin selector
      named vertically Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;vertically(Lnet/minecraft/util/math/intprovider/IntProvider;)Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;
      intermediary method_39656 Lnet/minecraft/class_6732;method_39656(Lnet/minecraft/class_6017;)Lnet/minecraft/class_6732;
      official a Leiv;a(Lbpv;)Leiv;
    • horizontally

      public static RandomOffsetPlacementModifier horizontally(IntProvider spreadXz)
      Mappings:
      Namespace Name Mixin selector
      named horizontally Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;horizontally(Lnet/minecraft/util/math/intprovider/IntProvider;)Lnet/minecraft/world/gen/placementmodifier/RandomOffsetPlacementModifier;
      intermediary method_39658 Lnet/minecraft/class_6732;method_39658(Lnet/minecraft/class_6017;)Lnet/minecraft/class_6732;
      official b Leiv;b(Lbpv;)Leiv;
    • getPositions

      public Stream<BlockPos> getPositions(FeaturePlacementContext context, Random random, BlockPos pos)
      Applies this placement modifier to the given position.
      Specified by:
      getPositions in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a_ Leit;a_(Leir;Layv;Ljd;)Ljava/util/stream/Stream;
    • getType

      public PlacementModifierType<?> getType()
      Specified by:
      getType in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getType()Lnet/minecraft/world/gen/placementmodifier/PlacementModifierType;
      intermediary method_39615 Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;
      official b Leit;b()Leiu;