Class SquarePlacementModifier

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

public class SquarePlacementModifier extends PlacementModifier
Mappings:
Namespace Name
official djg
intermediary net/minecraft/class_5450
named net/minecraft/world/gen/placementmodifier/SquarePlacementModifier
  • Field Details

    • INSTANCE

      private static final SquarePlacementModifier INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official c Ldjg;c:Ldjg;
      intermediary field_35728 Lnet/minecraft/class_5450;field_35728:Lnet/minecraft/class_5450;
      named INSTANCE Lnet/minecraft/world/gen/placementmodifier/SquarePlacementModifier;INSTANCE:Lnet/minecraft/world/gen/placementmodifier/SquarePlacementModifier;
    • MODIFIER_CODEC

      public static final com.mojang.serialization.Codec<SquarePlacementModifier> MODIFIER_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a:Lcom/mojang/serialization/Codec;
      intermediary field_35727 Lnet/minecraft/class_5450;field_35727:Lcom/mojang/serialization/Codec;
      named MODIFIER_CODEC Lnet/minecraft/world/gen/placementmodifier/SquarePlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • SquarePlacementModifier

      public SquarePlacementModifier()
  • Method Details

    • of

      public static SquarePlacementModifier of()
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a()Ldjg;
      intermediary method_39639 Lnet/minecraft/class_5450;method_39639()Lnet/minecraft/class_5450;
      named of Lnet/minecraft/world/gen/placementmodifier/SquarePlacementModifier;of()Lnet/minecraft/world/gen/placementmodifier/SquarePlacementModifier;
    • 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
      official a_ Ldjm;a_(Ldjk;Lalu;Lgt;)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

      public PlacementModifierType<?> getType()
      Specified by:
      getType in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      official b Ldjm;b()Ldjn;
      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;