Package de.ellpeck.rockbottom.api.tile
Class LiquidTile
java.lang.Object
de.ellpeck.rockbottom.api.tile.Tile
de.ellpeck.rockbottom.api.tile.BasicTile
de.ellpeck.rockbottom.api.tile.LiquidTile
-
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 TypeMethodDescriptionbooleancanBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player, boolean isRightTool) booleancanPlaceInLayer(TileLayer layer) booleanprotected ITileRenderercreateRenderer(ResourceName name) abstract booleandoesFlow()abstract intabstract intprotected booleanhasItem()booleanbooleanisLiquid()voidvoidonChangeAround(IWorld world, int x, int y, TileLayer layer, int changedX, int changedY, TileLayer changedLayer) voidonIntersectWithEntity(IWorld world, int x, int y, TileLayer layer, TileState state, BoundingBox entityBox, BoundingBox entityBoxMotion, List<BoundingBox> tileBoxes, Entity entity) voidonScheduledUpdate(IWorld world, int x, int y, TileLayer layer, int scheduledMeta) Methods inherited from class de.ellpeck.rockbottom.api.tile.BasicTile
getRendererMethods inherited from class de.ellpeck.rockbottom.api.tile.Tile
addEffectiveTool, addProps, canClimb, canGrassSpreadTo, canKeepFarmablePlants, canKeepPlants, canLiquidSpread, canPlace, canProvideTileEntity, canReplace, canStay, chisel, createItemTile, describeItem, doBreak, doesSustainLeaves, doPlace, factorsIntoHeightMap, getActualBoundBox, getBoundBox, getBoundBox, getBoundBoxes, getBoundBoxes, getBreakSound, getChiselBoundBoxes, getDefState, getDrops, getHardness, getInteractionPriority, getItem, getLight, getMaxInteractionDistance, getName, getPlacementState, getPlaceSound, getPlatformBounds, getProps, getTranslucentModifier, hasProp, hasSolidSurface, hasState, isAir, isChiselable, isChiseled, isPlatform, isToolEffective, makesGrassSnowy, obscuresBackground, onCollideWithEntity, onDestroyed, onInteractWith, onInteractWithBreakKey, onRemoved, provideTileEntity, register, setChiselable, setForceDrop, setHardness, setMaxAmount, toString, updateRandomly, updateRandomlyInPlayerView
-
Field Details
-
level
-
-
Constructor Details
-
LiquidTile
-
-
Method Details
-
getFullState
-
createRenderer
- Overrides:
createRendererin classBasicTile
-
isLiquid
public boolean isLiquid() -
canSwim
-
getLevels
public abstract int getLevels() -
doesFlow
public abstract boolean doesFlow() -
getFlowSpeed
public abstract int getFlowSpeed() -
onChangeAround
public void onChangeAround(IWorld world, int x, int y, TileLayer layer, int changedX, int changedY, TileLayer changedLayer) - Overrides:
onChangeAroundin classTile
-
onAdded
-
canBreak
public boolean canBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player, boolean isRightTool) -
canPlaceInLayer
- Overrides:
canPlaceInLayerin classTile
-
isFullTile
public boolean isFullTile()- Overrides:
isFullTilein classTile
-
onScheduledUpdate
- Overrides:
onScheduledUpdatein classTile
-
hasItem
protected boolean hasItem() -
onIntersectWithEntity
public void onIntersectWithEntity(IWorld world, int x, int y, TileLayer layer, TileState state, BoundingBox entityBox, BoundingBox entityBoxMotion, List<BoundingBox> tileBoxes, Entity entity) - Overrides:
onIntersectWithEntityin classTile
-