public class ConnectedTextureIcon extends MalisisIcon
ConnectedTextureIcon will then clip different parts for different connection cases.| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.common.util.ForgeDirection[][] |
sides |
dependants, flippedU, flippedV, rotation, sheetHeight, sheetWidth| Constructor and Description |
|---|
ConnectedTextureIcon(java.lang.String name,
MalisisIcon part1,
MalisisIcon part2) |
ConnectedTextureIcon(net.minecraft.client.renderer.texture.TextureMap register,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.IIcon |
getFullIcon()
Gets the
IIcon with no connection on any side. |
net.minecraft.util.IIcon |
getIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
Gets the corresponding
IIcon based on the connections available. |
protected void |
initIcon(MalisisIcon icon,
int width,
int height,
int x,
int y,
boolean rotated)
Initializes this
MalisisIcon. |
void |
initSprite(int width,
int height,
int x,
int y,
boolean rotated)
Called when the part represented by this
MalisisIcon is stiched to the texture. |
addDependant, clip, clip, copy, copyFrom, flip, getMaxU, getMaxV, getMinU, getMinV, getRotation, isFlippedU, isFlippedV, isRotated, offset, register, setRotation, setSizeclearFramesTextureData, copyFrom, generateMipmaps, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getOriginX, getOriginY, hasAnimationMetadata, hasCustomLoader, load, loadSprite, setFramesTextureData, setIconHeight, setIconWidth, toString, updateAnimationpublic ConnectedTextureIcon(java.lang.String name,
MalisisIcon part1,
MalisisIcon part2)
public ConnectedTextureIcon(net.minecraft.client.renderer.texture.TextureMap register,
java.lang.String name)
protected void initIcon(MalisisIcon icon, int width, int height, int x, int y, boolean rotated)
MalisisIconMalisisIcon. Called from the icon this one depends on, copying the baseIcon values.initIcon in class MalisisIconicon - the base iconwidth - the widthheight - the heightx - the xy - the yrotated - the rotatedpublic net.minecraft.util.IIcon getFullIcon()
IIcon with no connection on any side.public net.minecraft.util.IIcon getIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
IIcon based on the connections available.world - the worldx - the xy - the yz - the zside - the sidepublic void initSprite(int width,
int height,
int x,
int y,
boolean rotated)
MalisisIconMalisisIcon is stiched to the texture. Sets most of the icon fields.initSprite in class MalisisIconwidth - the widthheight - the heightx - the xy - the yrotated - the rotated