Class StrongholdGenerator.Piece

java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
Direct Known Subclasses:
StrongholdGenerator.ChestCorridor, StrongholdGenerator.Corridor, StrongholdGenerator.FiveWayCrossing, StrongholdGenerator.Library, StrongholdGenerator.PortalRoom, StrongholdGenerator.PrisonHall, StrongholdGenerator.SmallCorridor, StrongholdGenerator.SpiralStaircase, StrongholdGenerator.SquareRoom, StrongholdGenerator.Stairs, StrongholdGenerator.Turn
Enclosing class:
StrongholdGenerator

abstract static class StrongholdGenerator.Piece
extends StructurePiece
Mappings:
Namespace Name
official cxf$p
intermediary net/minecraft/class_3421$class_3437
named net/minecraft/structure/StrongholdGenerator$Piece
  • Field Details

    • entryDoor

      Mappings:
      Namespace Name Mixin selector
      official d Lcxf$p;d:Lcxf$p$a;
      intermediary field_15287 Lnet/minecraft/class_3421$class_3437;field_15287:Lnet/minecraft/class_3421$class_3437$class_3438;
      named entryDoor Lnet/minecraft/structure/StrongholdGenerator$Piece;entryDoor:Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
  • Constructor Details

    • Piece

      protected Piece​(StructurePieceType type, int length)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxh;<init>(Lcqk;I)V
      intermediary <init> Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;I)V
      named <init> Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;I)V
    • Piece

      public Piece​(StructurePieceType type, CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxh;<init>(Lcqk;Lmq;)V
      intermediary <init> Lnet/minecraft/class_3443;<init>(Lnet/minecraft/class_3773;Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/structure/StructurePiece;<init>(Lnet/minecraft/structure/StructurePieceType;Lnet/minecraft/nbt/CompoundTag;)V
  • Method Details

    • toNbt

      protected void toNbt​(CompoundTag tag)
      Specified by:
      toNbt in class StructurePiece
      Mappings:
      Namespace Name Mixin selector
      official a Lcxh;a(Lmq;)V
      intermediary method_14943 Lnet/minecraft/class_3443;method_14943(Lnet/minecraft/class_2487;)V
      named toNbt Lnet/minecraft/structure/StructurePiece;toNbt(Lnet/minecraft/nbt/CompoundTag;)V
    • generateEntrance

      protected void generateEntrance​(StructureWorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxf$p;a(Lbuq;Ljava/util/Random;Lcwn;Lcxf$p$a;III)V
      intermediary method_14872 Lnet/minecraft/class_3421$class_3437;method_14872(Lnet/minecraft/class_5281;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_3421$class_3437$class_3438;III)V
      named generateEntrance Lnet/minecraft/structure/StrongholdGenerator$Piece;generateEntrance(Lnet/minecraft/world/StructureWorldAccess;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;III)V
    • getRandomEntrance

      protected StrongholdGenerator.Piece.EntranceType getRandomEntrance​(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxf$p;a(Ljava/util/Random;)Lcxf$p$a;
      intermediary method_14869 Lnet/minecraft/class_3421$class_3437;method_14869(Ljava/util/Random;)Lnet/minecraft/class_3421$class_3437$class_3438;
      named getRandomEntrance Lnet/minecraft/structure/StrongholdGenerator$Piece;getRandomEntrance(Ljava/util/Random;)Lnet/minecraft/structure/StrongholdGenerator$Piece$EntranceType;
    • fillForwardOpening

      @Nullable protected StructurePiece fillForwardOpening​(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxf$p;a(Lcxf$m;Ljava/util/List;Ljava/util/Random;II)Lcxh;
      intermediary method_14874 Lnet/minecraft/class_3421$class_3437;method_14874(Lnet/minecraft/class_3421$class_3434;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/class_3443;
      named fillForwardOpening Lnet/minecraft/structure/StrongholdGenerator$Piece;fillForwardOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
    • fillNWOpening

      @Nullable protected StructurePiece fillNWOpening​(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)
      Mappings:
      Namespace Name Mixin selector
      official b Lcxf$p;b(Lcxf$m;Ljava/util/List;Ljava/util/Random;II)Lcxh;
      intermediary method_14870 Lnet/minecraft/class_3421$class_3437;method_14870(Lnet/minecraft/class_3421$class_3434;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/class_3443;
      named fillNWOpening Lnet/minecraft/structure/StrongholdGenerator$Piece;fillNWOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
    • fillSEOpening

      @Nullable protected StructurePiece fillSEOpening​(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)
      Mappings:
      Namespace Name Mixin selector
      official c Lcxf$p;c(Lcxf$m;Ljava/util/List;Ljava/util/Random;II)Lcxh;
      intermediary method_14873 Lnet/minecraft/class_3421$class_3437;method_14873(Lnet/minecraft/class_3421$class_3434;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/class_3443;
      named fillSEOpening Lnet/minecraft/structure/StrongholdGenerator$Piece;fillSEOpening(Lnet/minecraft/structure/StrongholdGenerator$Start;Ljava/util/List;Ljava/util/Random;II)Lnet/minecraft/structure/StructurePiece;
    • isInBounds

      protected static boolean isInBounds​(BlockBox boundingBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxf$p;a(Lcwn;)Z
      intermediary method_14871 Lnet/minecraft/class_3421$class_3437;method_14871(Lnet/minecraft/class_3341;)Z
      named isInBounds Lnet/minecraft/structure/StrongholdGenerator$Piece;isInBounds(Lnet/minecraft/util/math/BlockBox;)Z