public abstract class MultiTile extends BasicTile
| Modifier and Type | Field and Description |
|---|---|
IntProp |
propSubX |
IntProp |
propSubY |
BOTTOM_LEFT, BOTTOM_RIGHT, CHISEL_BOUNDS, DEFAULT_BOUNDS, effectiveToolProps, forceDrop, hardness, isChiselable, name, TOP_LEFT, TOP_RIGHT| Constructor and Description |
|---|
MultiTile(ResourceName name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlace(IWorld world,
int x,
int y,
TileLayer layer,
AbstractPlayerEntity player) |
protected ITileRenderer |
createRenderer(ResourceName 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,
AbstractPlayerEntity breaker,
boolean isRightTool,
boolean allowDrop) |
void |
doPlace(IWorld world,
int x,
int y,
TileLayer layer,
ItemInstance instance,
AbstractPlayerEntity 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, canBreak, canClimb, canGrassSpreadTo, canKeepFarmablePlants, canKeepPlants, canLiquidSpread, canPlaceInLayer, canProvideTileEntity, canReplace, canStay, canSwim, chisel, createItemTile, doesSustainLeaves, factorsIntoHeightMap, getActualBoundBox, getBoundBox, getBoundBox, getBoundBoxes, getBoundBoxes, getBreakSound, getChiselBoundBoxes, getDefState, getDrops, getHardness, getInteractionPriority, getItem, getLight, getMaxInteractionDistance, getName, getPlacementState, getPlaceSound, getPlatformBounds, getProps, getTranslucentModifier, hasItem, hasProp, hasSolidSurface, hasState, isAir, isChiselable, isChiseled, isFullTile, isLiquid, isPlatform, isToolEffective, makesGrassSnowy, obscuresBackground, onAdded, onChangeAround, onCollideWithEntity, onInteractWith, onInteractWithBreakKey, onIntersectWithEntity, onRemoved, onScheduledUpdate, provideTileEntity, register, setChiselable, setForceDrop, setHardness, setMaxAmount, toString, updateRandomly, updateRandomlyInPlayerViewpublic MultiTile(ResourceName name)
protected ITileRenderer createRenderer(ResourceName name)
createRenderer in class BasicTileprotected 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 boolean canPlace(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player)
public void doPlace(IWorld world, int x, int y, TileLayer layer, ItemInstance instance, AbstractPlayerEntity placer)
public void doBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity 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