Class BuriedTreasureFeature

java.lang.Object
net.minecraft.world.gen.feature.StructureFeature<ProbabilityConfig>
net.minecraft.world.gen.feature.BuriedTreasureFeature

public class BuriedTreasureFeature extends StructureFeature<ProbabilityConfig>
Mappings:
Namespace Name
official cvj
intermediary net/minecraft/class_2956
named net/minecraft/world/gen/feature/BuriedTreasureFeature
  • Field Details

    • SALT

      private static final int SALT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcvj;a:I
      intermediary field_31500 Lnet/minecraft/class_2956;field_31500:I
      named SALT Lnet/minecraft/world/gen/feature/BuriedTreasureFeature;SALT:I
  • Constructor Details

    • BuriedTreasureFeature

      public BuriedTreasureFeature(com.mojang.serialization.Codec<ProbabilityConfig> configCodec)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcvj;<init>(Lcom/mojang/serialization/Codec;)V
      intermediary <init> Lnet/minecraft/class_2956;<init>(Lcom/mojang/serialization/Codec;)V
      named <init> Lnet/minecraft/world/gen/feature/BuriedTreasureFeature;<init>(Lcom/mojang/serialization/Codec;)V
  • Method Details

    • shouldStartAt

      protected boolean shouldStartAt(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkPos chunkPos, ProbabilityConfig probabilityConfig, HeightLimitView heightLimitView)
      Description copied from class: StructureFeature
      Checks if this structure can actually be placed at a potential structure position determined via StructureFeature.getStartChunk(net.minecraft.world.gen.chunk.StructureConfig, long, int, int). Specific structures override this method to reduce the spawn probability or restrict the spawn in some other way.
      Overrides:
      shouldStartAt in class StructureFeature<ProbabilityConfig>
      Mappings:
      Namespace Name Mixin selector
      official a Lcvj;a(Lcps;Lcaw;JLbzd;Lczi;Lbzy;)Z
      intermediary method_28619 Lnet/minecraft/class_2956;method_28619(Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;JLnet/minecraft/class_1923;Lnet/minecraft/class_3133;Lnet/minecraft/class_5539;)Z
      named shouldStartAt Lnet/minecraft/world/gen/feature/BuriedTreasureFeature;shouldStartAt(Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/biome/source/BiomeSource;JLnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/ProbabilityConfig;Lnet/minecraft/world/HeightLimitView;)Z
    • addPieces

      private static void addPieces(StructurePiecesCollector collector, ProbabilityConfig config, StructurePiecesGenerator.Context context)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvj;a(Ldfd;Lczi;Ldfa$a;)V
      intermediary method_38672 Lnet/minecraft/class_2956;method_38672(Lnet/minecraft/class_6626;Lnet/minecraft/class_3133;Lnet/minecraft/class_6622$class_6623;)V
      named addPieces Lnet/minecraft/world/gen/feature/BuriedTreasureFeature;addPieces(Lnet/minecraft/structure/StructurePiecesCollector;Lnet/minecraft/world/gen/ProbabilityConfig;Lnet/minecraft/structure/StructurePiecesGenerator$Context;)V
    • getLocatedPos

      public BlockPos getLocatedPos(ChunkPos chunkPos)
      Returns a block position for feature location.
      Overrides:
      getLocatedPos in class StructureFeature<ProbabilityConfig>
      Returns:
      a block position for feature location
      Mappings:
      Namespace Name Mixin selector
      official a Lcxy;a(Lbzd;)Lgh;
      intermediary method_38671 Lnet/minecraft/class_3195;method_38671(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;
      named getLocatedPos Lnet/minecraft/world/gen/feature/StructureFeature;getLocatedPos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;