public abstract class LiquidTile extends BasicTile
| Modifier and Type | Field and Description |
|---|---|
IntProp |
level |
BOTTOM_LEFT, BOTTOM_RIGHT, CHISEL_BOUNDS, DEFAULT_BOUNDS, effectiveToolProps, forceDrop, hardness, isChiselable, name, TOP_LEFT, TOP_RIGHT| Constructor and Description |
|---|
LiquidTile(ResourceName name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBreak(IWorld world,
int x,
int y,
TileLayer layer,
AbstractPlayerEntity player,
boolean isRightTool) |
boolean |
canPlaceInLayer(TileLayer layer) |
boolean |
canSwim(IWorld world,
int x,
int y,
TileLayer layer,
Entity entity) |
protected ITileRenderer |
createRenderer(ResourceName name) |
abstract boolean |
doesFlow() |
abstract int |
getFlowSpeed() |
TileState |
getFullState() |
abstract int |
getLevels() |
protected boolean |
hasItem() |
boolean |
isFullTile() |
boolean |
isLiquid() |
void |
onAdded(IWorld world,
int x,
int y,
TileLayer layer) |
void |
onChangeAround(IWorld world,
int x,
int y,
TileLayer layer,
int changedX,
int changedY,
TileLayer changedLayer) |
void |
onIntersectWithEntity(IWorld world,
int x,
int y,
TileLayer layer,
TileState state,
BoundingBox entityBox,
BoundingBox entityBoxMotion,
java.util.List<BoundingBox> tileBoxes,
Entity entity) |
void |
onScheduledUpdate(IWorld world,
int x,
int y,
TileLayer layer,
int scheduledMeta) |
getRendereraddEffectiveTool, 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, updateRandomlyInPlayerViewpublic final IntProp level
public LiquidTile(ResourceName name)
public TileState getFullState()
protected ITileRenderer createRenderer(ResourceName name)
createRenderer in class BasicTilepublic abstract int getLevels()
public abstract boolean doesFlow()
public abstract int getFlowSpeed()
public void onChangeAround(IWorld world, int x, int y, TileLayer layer, int changedX, int changedY, TileLayer changedLayer)
onChangeAround in class Tilepublic boolean canBreak(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player, boolean isRightTool)
public boolean canPlaceInLayer(TileLayer layer)
canPlaceInLayer in class Tilepublic boolean isFullTile()
isFullTile in class Tilepublic void onScheduledUpdate(IWorld world, int x, int y, TileLayer layer, int scheduledMeta)
onScheduledUpdate in class Tilepublic void onIntersectWithEntity(IWorld world, int x, int y, TileLayer layer, TileState state, BoundingBox entityBox, BoundingBox entityBoxMotion, java.util.List<BoundingBox> tileBoxes, Entity entity)
onIntersectWithEntity in class Tile