Package net.minecraft.src
Class StructureComponent
- java.lang.Object
-
- net.minecraft.src.StructureComponent
-
- Direct Known Subclasses:
ComponentMineshaftCorridor
,ComponentMineshaftCross
,ComponentMineshaftRoom
,ComponentMineshaftStairs
,ComponentNetherBridgeCorridor
,ComponentNetherBridgeCorridor2
,ComponentNetherBridgeCorridor3
,ComponentNetherBridgeCorridor4
,ComponentNetherBridgeCorridor5
,ComponentNetherBridgeCrossing
,ComponentNetherBridgeCrossing2
,ComponentNetherBridgeCrossing3
,ComponentNetherBridgeEnd
,ComponentNetherBridgeEntrance
,ComponentNetherBridgeNetherStalkRoom
,ComponentNetherBridgeStairs
,ComponentNetherBridgeStraight
,ComponentNetherBridgeThrone
,ComponentStrongholdChestCorridor
,ComponentStrongholdCorridor
,ComponentStrongholdCrossing
,ComponentStrongholdLeftTurn
,ComponentStrongholdLibrary
,ComponentStrongholdPortalRoom
,ComponentStrongholdPrison
,ComponentStrongholdRoomCrossing
,ComponentStrongholdStairs
,ComponentStrongholdStairsStraight
,ComponentStrongholdStraight
,ComponentVillageChurch
,ComponentVillageField
,ComponentVillageField2
,ComponentVillageHall
,ComponentVillageHouse1
,ComponentVillageHouse2
,ComponentVillageHouse3
,ComponentVillageHouse4_Garden
,ComponentVillageRoadPiece
,ComponentVillageTorch
,ComponentVillageWell
,ComponentVillageWoodHut
public abstract class StructureComponent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StructureBoundingBox
boundingBox
protected int
componentType
protected int
coordBaseMode
-
Constructor Summary
Constructors Modifier Constructor Description protected
StructureComponent(int var1)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
addComponentParts(World world, java.util.Random random, StructureBoundingBox structureboundingbox)
void
buildComponent(StructureComponent structurecomponent, java.util.List list, java.util.Random random)
protected void
clearCurrentPositionBlocksUpwards(World var1, int var2, int var3, int var4, StructureBoundingBox var5)
protected void
createTreasureChestAtCurrentPosition(World var1, StructureBoundingBox var2, java.util.Random var3, int var4, int var5, int var6, StructurePieceTreasure[] var7, int var8)
protected void
fillCurrentPositionBlocksDownwards(World var1, int var2, int var3, int var4, int var5, int var6, StructureBoundingBox var7)
protected void
fillWithBlocks(World var1, StructureBoundingBox var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, boolean var11)
protected void
fillWithRandomizedBlocks(World var1, StructureBoundingBox var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9, java.util.Random var10, StructurePieceBlockSelector var11)
static StructureComponent
findIntersecting(java.util.List var0, StructureBoundingBox var1)
protected int
getBlockIdAtCurrentPosition(World var1, int var2, int var3, int var4, StructureBoundingBox var5)
StructureBoundingBox
getBoundingBox()
ChunkPosition
getCenter()
int
getComponentType()
protected int
getMetadataWithOffset(int var1, int var2)
protected int
getXWithOffset(int var1, int var2)
protected int
getYWithOffset(int var1)
protected int
getZWithOffset(int var1, int var2)
protected boolean
isLiquidInStructureBoundingBox(World var1, StructureBoundingBox var2)
protected void
placeBlockAtCurrentPosition(World var1, int var2, int var3, int var4, int var5, int var6, StructureBoundingBox var7)
protected void
placeDoorAtCurrentPosition(World var1, StructureBoundingBox var2, java.util.Random var3, int var4, int var5, int var6, int var7)
protected void
randomlyFillWithBlocks(World var1, StructureBoundingBox var2, java.util.Random var3, float var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, boolean var13)
protected void
randomlyPlaceBlock(World var1, StructureBoundingBox var2, java.util.Random var3, float var4, int var5, int var6, int var7, int var8, int var9)
protected void
randomlyRareFillWithBlocks(World var1, StructureBoundingBox var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, boolean var10)
-
-
-
Field Detail
-
boundingBox
protected StructureBoundingBox boundingBox
-
coordBaseMode
protected int coordBaseMode
-
componentType
protected int componentType
-
-
Method Detail
-
buildComponent
public void buildComponent(StructureComponent structurecomponent, java.util.List list, java.util.Random random)
-
addComponentParts
public abstract boolean addComponentParts(World world, java.util.Random random, StructureBoundingBox structureboundingbox)
-
getBoundingBox
public StructureBoundingBox getBoundingBox()
-
getComponentType
public int getComponentType()
-
findIntersecting
public static StructureComponent findIntersecting(java.util.List var0, StructureBoundingBox var1)
-
getCenter
public ChunkPosition getCenter()
-
isLiquidInStructureBoundingBox
protected boolean isLiquidInStructureBoundingBox(World var1, StructureBoundingBox var2)
-
getXWithOffset
protected int getXWithOffset(int var1, int var2)
-
getYWithOffset
protected int getYWithOffset(int var1)
-
getZWithOffset
protected int getZWithOffset(int var1, int var2)
-
getMetadataWithOffset
protected int getMetadataWithOffset(int var1, int var2)
-
placeBlockAtCurrentPosition
protected void placeBlockAtCurrentPosition(World var1, int var2, int var3, int var4, int var5, int var6, StructureBoundingBox var7)
-
getBlockIdAtCurrentPosition
protected int getBlockIdAtCurrentPosition(World var1, int var2, int var3, int var4, StructureBoundingBox var5)
-
fillWithBlocks
protected void fillWithBlocks(World var1, StructureBoundingBox var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, boolean var11)
-
fillWithRandomizedBlocks
protected void fillWithRandomizedBlocks(World var1, StructureBoundingBox var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9, java.util.Random var10, StructurePieceBlockSelector var11)
-
randomlyFillWithBlocks
protected void randomlyFillWithBlocks(World var1, StructureBoundingBox var2, java.util.Random var3, float var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, boolean var13)
-
randomlyPlaceBlock
protected void randomlyPlaceBlock(World var1, StructureBoundingBox var2, java.util.Random var3, float var4, int var5, int var6, int var7, int var8, int var9)
-
randomlyRareFillWithBlocks
protected void randomlyRareFillWithBlocks(World var1, StructureBoundingBox var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, boolean var10)
-
clearCurrentPositionBlocksUpwards
protected void clearCurrentPositionBlocksUpwards(World var1, int var2, int var3, int var4, StructureBoundingBox var5)
-
fillCurrentPositionBlocksDownwards
protected void fillCurrentPositionBlocksDownwards(World var1, int var2, int var3, int var4, int var5, int var6, StructureBoundingBox var7)
-
createTreasureChestAtCurrentPosition
protected void createTreasureChestAtCurrentPosition(World var1, StructureBoundingBox var2, java.util.Random var3, int var4, int var5, int var6, StructurePieceTreasure[] var7, int var8)
-
placeDoorAtCurrentPosition
protected void placeDoorAtCurrentPosition(World var1, StructureBoundingBox var2, java.util.Random var3, int var4, int var5, int var6, int var7)
-
-