Package btw.block.model
Class BlockModel
java.lang.Object
api.util.PrimitiveGeometric
btw.block.model.BlockModel
- Direct Known Subclasses:
AnvilModel,BucketModel,CampfireModel,FenceModel,HamperModel,LogSpikeModel,MetalSpikeModel,MillstoneModel,OreChunkModel,OvenModel,PistonShovelModel,SoulforgeModel,VaseModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBox(double dMinX, double dMinY, double dMinZ, double dMaxX, double dMaxY, double dMaxZ) voidaddIntersectingBoxesToCollisionList(World world, int i, int j, int k, AxisAlignedBB boxToIntersect, List collisionList) voidaddPrimitive(PrimitiveGeometric primitive) voidaddToRayTrace(RayTraceUtils rayTrace) collisionRayTrace(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay) intintprotected voidvoidbooleanrenderAsBlock(RenderBlocks renderBlocks, Block block, int i, int j, int k) booleanrenderAsBlockFullBrightWithTexture(RenderBlocks renderBlocks, Block block, int i, int j, int k, Icon icon) booleanrenderAsBlockWithColorMultiplier(RenderBlocks renderBlocks, Block block, int i, int j, int k, float fRed, float fGreen, float fBlue) booleanrenderAsBlockWithTexture(RenderBlocks renderBlocks, Block block, int i, int j, int k, Icon icon) voidrenderAsFallingBlock(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iMetadata) voidrenderAsItemBlock(RenderBlocks renderBlocks, Block block, int iItemDamage) voidrotateAroundYToFacing(int iFacing) Yaws the model around the J axis.voidsetAssemblyID(int iAssemblyID) voidtiltToFacingAlongY(int iFacing) "Tilts" the model towards the desired facing.voidtranslate(double dDeltaX, double dDeltaY, double dDeltaZ) Methods inherited from class api.util.PrimitiveGeometric
renderAsBlockWithColorMultiplier
-
Constructor Details
-
BlockModel
public BlockModel() -
BlockModel
public BlockModel(int iAssemblyID)
-
-
Method Details
-
makeTemporaryCopy
- Specified by:
makeTemporaryCopyin classPrimitiveGeometric
-
rotateAroundYToFacing
public void rotateAroundYToFacing(int iFacing) Yaws the model around the J axis. Assumes that the model's initial facing is along the negative K axis (facing 2)- Specified by:
rotateAroundYToFacingin classPrimitiveGeometric
-
tiltToFacingAlongY
public void tiltToFacingAlongY(int iFacing) "Tilts" the model towards the desired facing. Takes the up vector and either yaws or rolls it towards the specified axis.- Specified by:
tiltToFacingAlongYin classPrimitiveGeometric
-
translate
public void translate(double dDeltaX, double dDeltaY, double dDeltaZ) - Specified by:
translatein classPrimitiveGeometric
-
addToRayTrace
- Specified by:
addToRayTracein classPrimitiveGeometric
-
addIntersectingBoxesToCollisionList
public void addIntersectingBoxesToCollisionList(World world, int i, int j, int k, AxisAlignedBB boxToIntersect, List collisionList) - Overrides:
addIntersectingBoxesToCollisionListin classPrimitiveGeometric
-
getAssemblyID
public int getAssemblyID()- Overrides:
getAssemblyIDin classPrimitiveGeometric
-
initModel
protected void initModel() -
makeTemporaryCopyOfPrimitiveList
-
addPrimitive
-
addBox
public void addBox(double dMinX, double dMinY, double dMinZ, double dMaxX, double dMaxY, double dMaxZ) -
collisionRayTrace
public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay) -
getActivePrimitiveID
public int getActivePrimitiveID() -
setAssemblyID
public void setAssemblyID(int iAssemblyID) -
renderAsBlock
@Environment(CLIENT) public boolean renderAsBlock(RenderBlocks renderBlocks, Block block, int i, int j, int k) - Specified by:
renderAsBlockin classPrimitiveGeometric
-
renderAsBlockWithColorMultiplier
@Environment(CLIENT) public boolean renderAsBlockWithColorMultiplier(RenderBlocks renderBlocks, Block block, int i, int j, int k, float fRed, float fGreen, float fBlue) - Specified by:
renderAsBlockWithColorMultiplierin classPrimitiveGeometric
-
renderAsBlockWithTexture
@Environment(CLIENT) public boolean renderAsBlockWithTexture(RenderBlocks renderBlocks, Block block, int i, int j, int k, Icon icon) - Specified by:
renderAsBlockWithTexturein classPrimitiveGeometric
-
renderAsBlockFullBrightWithTexture
@Environment(CLIENT) public boolean renderAsBlockFullBrightWithTexture(RenderBlocks renderBlocks, Block block, int i, int j, int k, Icon icon) - Specified by:
renderAsBlockFullBrightWithTexturein classPrimitiveGeometric
-
renderAsItemBlock
@Environment(CLIENT) public void renderAsItemBlock(RenderBlocks renderBlocks, Block block, int iItemDamage) - Specified by:
renderAsItemBlockin classPrimitiveGeometric
-
renderAsFallingBlock
@Environment(CLIENT) public void renderAsFallingBlock(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iMetadata) - Specified by:
renderAsFallingBlockin classPrimitiveGeometric
-