Class SimpleStructurePiece

java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
Direct Known Subclasses:
EndCityGenerator.Piece, IglooGenerator.Piece, NetherFossilGenerator.Piece, OceanRuinGenerator.Piece, RuinedPortalStructurePiece, ShipwreckGenerator.Piece, WoodlandMansionGenerator.Piece

public abstract class SimpleStructurePiece extends StructurePiece
Mappings:
Namespace Name
named net/minecraft/structure/SimpleStructurePiece
intermediary net/minecraft/class_3470
official eot
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/structure/SimpleStructurePiece;LOGGER:Lorg/slf4j/Logger;
      intermediary field_16586 Lnet/minecraft/class_3470;field_16586:Lorg/slf4j/Logger;
      official h Leot;h:Lorg/slf4j/Logger;
    • templateIdString

      protected final String templateIdString
      Mappings:
      Namespace Name Mixin selector
      named templateIdString Lnet/minecraft/structure/SimpleStructurePiece;templateIdString:Ljava/lang/String;
      intermediary field_31664 Lnet/minecraft/class_3470;field_31664:Ljava/lang/String;
      official a Leot;a:Ljava/lang/String;
    • template

      protected StructureTemplate template
      Mappings:
      Namespace Name Mixin selector
      named template Lnet/minecraft/structure/SimpleStructurePiece;template:Lnet/minecraft/structure/StructureTemplate;
      intermediary field_15433 Lnet/minecraft/class_3470;field_15433:Lnet/minecraft/class_3499;
      official b Leot;b:Lesl;
    • placementData

      protected StructurePlacementData placementData
      Mappings:
      Namespace Name Mixin selector
      named placementData Lnet/minecraft/structure/SimpleStructurePiece;placementData:Lnet/minecraft/structure/StructurePlacementData;
      intermediary field_15434 Lnet/minecraft/class_3470;field_15434:Lnet/minecraft/class_3492;
      official c Leot;c:Lesh;
    • pos

      protected BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      named pos Lnet/minecraft/structure/SimpleStructurePiece;pos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_15432 Lnet/minecraft/class_3470;field_15432:Lnet/minecraft/class_2338;
      official d Leot;d:Ljh;
  • Constructor Details

    • SimpleStructurePiece

      public SimpleStructurePiece(StructurePieceType type, int length, StructureTemplateManager structureTemplateManager, Identifier id, String template, StructurePlacementData placementData, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/structure/SimpleStructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;ILnet/minecraft/structure/StructureTemplateManager;Lnet/minecraft/util/Identifier;Ljava/lang/String;Lnet/minecraft/structure/StructurePlacementData;Lnet/minecraft/util/math/BlockPos;)V
      intermediary <init> Lnet/minecraft/class_3470;<init>(Lnet/minecraft/class_3773;ILnet/minecraft/class_3485;Lnet/minecraft/class_2960;Ljava/lang/String;Lnet/minecraft/class_3492;Lnet/minecraft/class_2338;)V
      official <init> Leot;<init>(Lepa;ILesm;Lalz;Ljava/lang/String;Lesh;Ljh;)V
    • SimpleStructurePiece

      public SimpleStructurePiece(StructurePieceType type, NbtCompound nbt, StructureTemplateManager structureTemplateManager, Function<Identifier,StructurePlacementData> placementDataGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/structure/SimpleStructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/structure/StructureTemplateManager;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_3470;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;Lnet/minecraft/class_3485;Ljava/util/function/Function;)V
      official <init> Leot;<init>(Lepa;Lux;Lesm;Ljava/util/function/Function;)V
  • Method Details

    • getId

      protected Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/structure/SimpleStructurePiece;getId()Lnet/minecraft/util/Identifier;
      intermediary method_35470 Lnet/minecraft/class_3470;method_35470()Lnet/minecraft/class_2960;
      official b Leot;b()Lalz;
    • writeNbt

      protected void writeNbt(StructureContext context, NbtCompound nbt)
      Specified by:
      writeNbt in class StructurePiece
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/structure/StructurePiece;writeNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_14943 Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;)V
      official a Leon;a(Leoz;Lux;)V
    • generate

      public void generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot)
      Specified by:
      generate in class StructurePiece
      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/structure/StructurePiece;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_14931 Lnet/minecraft/class_3443;method_14931(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;Lnet/minecraft/class_2338;)V
      official a Leon;a(Ldif;Ldid;Ldzq;Lbam;Leob;Ldgn;Ljh;)V
    • handleMetadata

      protected abstract void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)
      Mappings:
      Namespace Name Mixin selector
      named handleMetadata Lnet/minecraft/structure/SimpleStructurePiece;handleMetadata(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;)V
      intermediary method_15026 Lnet/minecraft/class_3470;method_15026(Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;)V
      official a Leot;a(Ljava/lang/String;Ljh;Ldhy;Lbam;Leob;)V
    • translate

      @Deprecated public void translate(int x, int y, int z)
      Deprecated.
      Overrides:
      translate in class StructurePiece
      Mappings:
      Namespace Name Mixin selector
      named translate Lnet/minecraft/structure/StructurePiece;translate(III)V
      intermediary method_14922 Lnet/minecraft/class_3443;method_14922(III)V
      official a Leon;a(III)V
    • getRotation

      public BlockRotation getRotation()
      Overrides:
      getRotation in class StructurePiece
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/structure/StructurePiece;getRotation()Lnet/minecraft/util/BlockRotation;
      intermediary method_16888 Lnet/minecraft/class_3443;method_16888()Lnet/minecraft/class_2470;
      official a Leon;a()Ldrb;
    • getTemplate

      public StructureTemplate getTemplate()
      Mappings:
      Namespace Name Mixin selector
      named getTemplate Lnet/minecraft/structure/SimpleStructurePiece;getTemplate()Lnet/minecraft/structure/StructureTemplate;
      intermediary method_41624 Lnet/minecraft/class_3470;method_41624()Lnet/minecraft/class_3499;
      official c Leot;c()Lesl;
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/structure/SimpleStructurePiece;getPos()Lnet/minecraft/util/math/BlockPos;
      intermediary method_41625 Lnet/minecraft/class_3470;method_41625()Lnet/minecraft/class_2338;
      official d Leot;d()Ljh;
    • getPlacementData

      public StructurePlacementData getPlacementData()
      Mappings:
      Namespace Name Mixin selector
      named getPlacementData Lnet/minecraft/structure/SimpleStructurePiece;getPlacementData()Lnet/minecraft/structure/StructurePlacementData;
      intermediary method_41626 Lnet/minecraft/class_3470;method_41626()Lnet/minecraft/class_3492;
      official e Leot;e()Lesh;