Package de.ellpeck.rockbottom.api.tile
Class MultiTile
java.lang.Object
de.ellpeck.rockbottom.api.tile.Tile
de.ellpeck.rockbottom.api.tile.BasicTile
de.ellpeck.rockbottom.api.tile.MultiTile
-
Field Summary
FieldsFields inherited from class de.ellpeck.rockbottom.api.tile.Tile
BOTTOM_LEFT, BOTTOM_RIGHT, CHISEL_BOUNDS, DEFAULT_BOUNDS, effectiveToolProps, forceDrop, hardness, isChiselable, name, TOP_LEFT, TOP_RIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlace(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player) protected ITileRenderercreateRenderer(ResourceName name) voiddescribeItem(IAssetManager manager, ItemInstance instance, List<String> desc, boolean isAdvanced) voiddoBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity breaker, boolean isRightTool, boolean allowDrop) voiddoPlace(IWorld world, int x, int y, TileLayer layer, ItemInstance instance, AbstractPlayerEntity placer) getBottomLeft(int x, int y, TileState state) abstract intgetInnerCoord(TileState state) getMainPos(int x, int y, TileState state) abstract intgetMainX()abstract intgetMainY()getState(int x, int y) abstract intgetWidth()booleanbooleanisStructurePart(int x, int y) protected abstract boolean[][]voidonDestroyed(IWorld world, int x, int y, Entity destroyer, TileLayer layer, boolean shouldDrop) Methods inherited from class de.ellpeck.rockbottom.api.tile.BasicTile
getRendererMethods inherited from class de.ellpeck.rockbottom.api.tile.Tile
addEffectiveTool, 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, updateRandomlyInPlayerView
-
Field Details
-
propSubX
-
propSubY
-
-
Constructor Details
-
MultiTile
-
-
Method Details
-
createRenderer
- Overrides:
createRendererin classBasicTile
-
makeStructure
protected abstract boolean[][] makeStructure() -
getWidth
public abstract int getWidth() -
getHeight
public abstract int getHeight() -
getMainX
public abstract int getMainX() -
getMainY
public abstract int getMainY() -
isStructurePart
public boolean isStructurePart(int x, int y) -
canPlace
-
doPlace
public void doPlace(IWorld world, int x, int y, TileLayer layer, ItemInstance instance, AbstractPlayerEntity placer) -
doBreak
public void doBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity breaker, boolean isRightTool, boolean allowDrop) -
onDestroyed
public void onDestroyed(IWorld world, int x, int y, Entity destroyer, TileLayer layer, boolean shouldDrop) - Overrides:
onDestroyedin classTile
-
isMainPos
-
getInnerCoord
-
getState
-
getState
-
getMainPos
-
getBottomLeft
-
describeItem
public void describeItem(IAssetManager manager, ItemInstance instance, List<String> desc, boolean isAdvanced) - Overrides:
describeItemin classTile
-