Package de.ellpeck.rockbottom.api.tile
Class TileTallPlant
java.lang.Object
de.ellpeck.rockbottom.api.tile.Tile
de.ellpeck.rockbottom.api.tile.BasicTile
de.ellpeck.rockbottom.api.tile.TileTallPlant
Used for two-high plants
-
Field Summary
Fields 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 TypeMethodDescriptionprotected booleanbooleancanPlace(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player) booleancanStay(IWorld world, int x, int y, TileLayer layer, int changedX, int changedY, TileLayer changedLayer) voiddoBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity breaker, boolean isRightTool, boolean allowDrop) getBoundBox(IWorld world, TileState state, int x, int y, TileLayer layer) booleanbooleanonInteractWithBreakKey(IWorld world, int x, int y, TileLayer layer, double mouseX, double mouseY, AbstractPlayerEntity player) voidupdateRandomly(IWorld world, int x, int y, TileLayer layer) Methods inherited from class de.ellpeck.rockbottom.api.tile.BasicTile
createRenderer, getRendererMethods inherited from class de.ellpeck.rockbottom.api.tile.Tile
addEffectiveTool, addProps, canBreak, canClimb, canGrassSpreadTo, canKeepFarmablePlants, canKeepPlants, canLiquidSpread, canPlaceInLayer, canProvideTileEntity, canReplace, canSwim, chisel, createItemTile, describeItem, doesSustainLeaves, doPlace, factorsIntoHeightMap, getActualBoundBox, getBoundBox, getBoundBoxes, getBoundBoxes, getBreakSound, getChiselBoundBoxes, getDefState, getHardness, getInteractionPriority, getItem, getLight, getMaxInteractionDistance, getName, getPlacementState, getPlaceSound, getPlatformBounds, getProps, getTranslucentModifier, hasItem, hasProp, hasSolidSurface, hasState, isAir, isChiselable, isChiseled, isLiquid, isPlatform, isToolEffective, makesGrassSnowy, obscuresBackground, onAdded, onChangeAround, onCollideWithEntity, onDestroyed, onInteractWith, onIntersectWithEntity, onRemoved, onScheduledUpdate, provideTileEntity, register, setChiselable, setForceDrop, setHardness, setMaxAmount, toString, updateRandomlyInPlayerView
-
Constructor Details
-
TileTallPlant
-
-
Method Details
-
canStay
-
canPlace
-
canBeHere
-
isFullTile
public boolean isFullTile()- Overrides:
isFullTilein classTile
-
getBoundBox
- Overrides:
getBoundBoxin classTile
-
updateRandomly
- Overrides:
updateRandomlyin classTile
-
onInteractWithBreakKey
public boolean onInteractWithBreakKey(IWorld world, int x, int y, TileLayer layer, double mouseX, double mouseY, AbstractPlayerEntity player) - Overrides:
onInteractWithBreakKeyin classTile
-
getDrops
-
doBreak
public void doBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity breaker, boolean isRightTool, boolean allowDrop)
-