Class RandomOffsetPlacementModifier

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

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

    • MODIFIER_CODEC

      public static final com.mojang.serialization.Codec<RandomOffsetPlacementModifier> MODIFIER_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldeb;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/decorator/RandomOffsetPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/Codec;
    • spreadXz

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

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

    • RandomOffsetPlacementModifier

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

    • of

      public static RandomOffsetPlacementModifier of(IntProvider spreadXz, IntProvider spreadY)
      Mappings:
      Namespace Name Mixin selector
      official a Ldeb;a(Lauw;Lauw;)Ldeb;
      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/decorator/RandomOffsetPlacementModifier;of(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;)Lnet/minecraft/world/gen/decorator/RandomOffsetPlacementModifier;
    • vertically

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

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

      public Stream<BlockPos> getPositions(DecoratorContext context, Random random, BlockPos pos)
      Applies this placement modifier to the given position.
      Specified by:
      getPositions in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      official a_ Lddz;a_(Lddx;Ljava/util/Random;Lgh;)Ljava/util/stream/Stream;
      intermediary method_14452 Lnet/minecraft/class_6797;method_14452(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
      named getPositions Lnet/minecraft/world/gen/decorator/PlacementModifier;getPositions(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;
    • getType

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