public abstract class MultiTile extends TileBasic
| Modifier and Type | Field and Description |
|---|---|
IntProp |
propSubX |
IntProp |
propSubY |
DEFAULT_BOUNDS, effectiveTools, forceDrop, hardness, name| Constructor and Description |
|---|
MultiTile(IResourceName name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlace(IWorld world,
int x,
int y,
TileLayer layer) |
protected ITileRenderer |
createRenderer(IResourceName name) |
void |
describeItem(IAssetManager manager,
ItemInstance instance,
java.util.List<java.lang.String> desc,
boolean isAdvanced) |
void |
doBreak(IWorld world,
int x,
int y,
TileLayer layer,
AbstractEntityPlayer breaker,
boolean isRightTool,
boolean allowDrop) |
void |
doPlace(IWorld world,
int x,
int y,
TileLayer layer,
ItemInstance instance,
AbstractEntityPlayer placer) |
Pos2 |
getBottomLeft(int x,
int y,
TileState state) |
abstract int |
getHeight() |
Pos2 |
getInnerCoord(TileState state) |
Pos2 |
getMainPos(int x,
int y,
TileState state) |
abstract int |
getMainX() |
abstract int |
getMainY() |
TileState |
getState(int x,
int y) |
TileState |
getState(Pos2 coord) |
abstract int |
getWidth() |
boolean |
isMainPos(int x,
int y,
TileState state) |
boolean |
isStructurePart(int x,
int y) |
protected abstract boolean[][] |
makeStructure() |
void |
onDestroyed(IWorld world,
int x,
int y,
Entity destroyer,
TileLayer layer,
boolean shouldDrop) |
getRendereraddEffectiveTool, addProps, addResource, canBreak, canClimb, canGrassSpreadTo, canKeepPlants, canPlaceInLayer, canProvideTileEntity, canReplace, canStay, createItemTile, doesSustainLeaves, getBoundBox, getBoundBoxes, getBreakSound, getDefState, getDrops, getHardness, getItem, getLight, getMaxInteractionDistance, getName, getPlacementState, getPlaceSound, getProps, getTranslucentModifier, hasItem, isAir, isFullTile, isToolEffective, obscuresBackground, onAdded, onChangeAround, onCollideWithEntity, onInteractWith, onRemoved, onScheduledUpdate, onScheduledUpdate, provideTileEntity, register, setForceDrop, setHardness, shouldShowBreakAnimation, toString, updateRandomly, updateRandomlyForRenderingpublic MultiTile(IResourceName name)
protected ITileRenderer createRenderer(IResourceName name)
createRenderer in class TileBasicprotected abstract boolean[][] makeStructure()
public boolean isStructurePart(int x,
int y)
public void onDestroyed(IWorld world, int x, int y, Entity destroyer, TileLayer layer, boolean shouldDrop)
onDestroyed in class Tilepublic void doBreak(IWorld world, int x, int y, TileLayer layer, AbstractEntityPlayer breaker, boolean isRightTool, boolean allowDrop)
public void doPlace(IWorld world, int x, int y, TileLayer layer, ItemInstance instance, AbstractEntityPlayer placer)
public void describeItem(IAssetManager manager, ItemInstance instance, java.util.List<java.lang.String> desc, boolean isAdvanced)
describeItem in class Tilepublic abstract int getWidth()
public abstract int getHeight()
public boolean isMainPos(int x,
int y,
TileState state)
public abstract int getMainX()
public abstract int getMainY()
public TileState getState(int x, int y)