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, canLiquidSpreadInto, canPlaceInLayer, canProvideTileEntity, canReplace, canStay, createItemTile, doesSustainLeaves, getBoundBox, getBoundBoxes, getBreakSound, getDefState, getDrops, getHardness, getItem, getLight, getMaxInteractionDistance, getName, getPlacementState, getPlaceSound, getProps, getTranslucentModifier, hasItem, hasSolidSurface, hasState, isAir, isFullTile, isLiquid, isToolEffective, obscuresBackground, onAdded, onChangeAround, onCollideWithEntity, onInteractWith, onIntersectWithEntity, onRemoved, onScheduledUpdate, provideTileEntity, register, setForceDrop, setHardness, toString, updateRandomly, updateRandomlyForRenderingpublic MultiTile(IResourceName name)
protected ITileRenderer createRenderer(IResourceName name)
createRenderer in class TileBasicprotected abstract boolean[][] makeStructure()
public abstract int getWidth()
public abstract int getHeight()
public abstract int getMainX()
public abstract int getMainY()
public boolean isStructurePart(int x,
int y)
public void doPlace(IWorld world, int x, int y, TileLayer layer, ItemInstance instance, AbstractEntityPlayer placer)
public void doBreak(IWorld world, int x, int y, TileLayer layer, AbstractEntityPlayer breaker, boolean isRightTool, boolean allowDrop)
public void onDestroyed(IWorld world, int x, int y, Entity destroyer, TileLayer layer, boolean shouldDrop)
onDestroyed in class Tilepublic boolean isMainPos(int x,
int y,
TileState state)
public TileState getState(int x, int y)
public void describeItem(IAssetManager manager, ItemInstance instance, java.util.List<java.lang.String> desc, boolean isAdvanced)
describeItem in class Tile