public abstract class BlockLiquid extends Block
Block.SoundTypeblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness| Modifier | Constructor and Description |
|---|---|
protected |
BlockLiquid(Material p_i45413_1_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCollideCheck(int p_149678_1_,
boolean p_149678_2_)
Returns whether this block is collideable based on the arguments passed in
|
int |
colorMultiplier(IBlockAccess p_149720_1_,
int p_149720_2_,
int p_149720_3_,
int p_149720_4_)
Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color.
|
protected void |
func_149799_m(World p_149799_1_,
int p_149799_2_,
int p_149799_3_,
int p_149799_4_) |
protected int |
func_149804_e(World p_149804_1_,
int p_149804_2_,
int p_149804_3_,
int p_149804_4_) |
int |
getBlockColor() |
boolean |
getBlocksMovement(IBlockAccess p_149655_1_,
int p_149655_2_,
int p_149655_3_,
int p_149655_4_) |
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World p_149668_1_,
int p_149668_2_,
int p_149668_3_,
int p_149668_4_)
Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been
cleared to be reused)
|
protected int |
getEffectiveFlowDecay(IBlockAccess p_149798_1_,
int p_149798_2_,
int p_149798_3_,
int p_149798_4_)
Returns the flow decay but converts values indicating falling liquid (values >=8) to their effective source block
value of zero
|
static double |
getFlowDirection(IBlockAccess p_149802_0_,
int p_149802_1_,
int p_149802_2_,
int p_149802_3_,
Material p_149802_4_)
the sin and cos of this number determine the surface gradient of the flowing block.
|
IIcon |
getIcon(int p_149691_1_,
int p_149691_2_)
Gets the block's texture.
|
Item |
getItemDropped(int p_149650_1_,
java.util.Random p_149650_2_,
int p_149650_3_) |
static float |
getLiquidHeightPercent(int p_149801_0_)
Returns the percentage of the liquid block that is air, based on the given flow decay of the liquid
|
static IIcon |
getLiquidIcon(java.lang.String p_149803_0_) |
int |
getMixedBrightnessForBlock(IBlockAccess p_149677_1_,
int p_149677_2_,
int p_149677_3_,
int p_149677_4_)
How bright to render this block based on the light its receiving.
|
int |
getRenderBlockPass()
Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
|
int |
getRenderType()
The type of render function that is called for this block
|
boolean |
isBlockSolid(IBlockAccess p_149747_1_,
int p_149747_2_,
int p_149747_3_,
int p_149747_4_,
int p_149747_5_)
Returns true if the given side of this block type should be rendered (if it's solid or not), if the adjacent
block is at the given coordinates.
|
boolean |
isOpaqueCube()
Is this block (a) opaque and (b) a full 1m cube?
|
void |
onBlockAdded(World p_149726_1_,
int p_149726_2_,
int p_149726_3_,
int p_149726_4_)
Called whenever the block is added into the world.
|
void |
onNeighborBlockChange(World p_149695_1_,
int p_149695_2_,
int p_149695_3_,
int p_149695_4_,
Block p_149695_5_)
Lets the block know when one of its neighbor changes.
|
int |
quantityDropped(java.util.Random p_149745_1_)
Returns the quantity of items to drop on block destruction.
|
void |
randomDisplayTick(World p_149734_1_,
int p_149734_2_,
int p_149734_3_,
int p_149734_4_,
java.util.Random p_149734_5_)
A randomly called display update to be able to add particles or other items for display
|
void |
registerBlockIcons(IIconRegister p_149651_1_) |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
boolean |
shouldSideBeRendered(IBlockAccess p_149646_1_,
int p_149646_2_,
int p_149646_3_,
int p_149646_4_,
int p_149646_5_)
Returns true if the given side of this block type should be rendered, if the adjacent block is at the given
coordinates.
|
int |
tickRate(World p_149738_1_)
How many world ticks before ticking
|
void |
velocityToAddToEntity(World p_149640_1_,
int p_149640_2_,
int p_149640_3_,
int p_149640_4_,
Entity p_149640_5_,
Vec3 p_149640_6_)
Can add to the passed in vector for a movement vector to be applied to the entity.
|
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockTextureFromSide, getCanBlockGrass, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDroppedWithBonus, recolourBlock, registerBlocks, removedByPlayer, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, updateTickprotected BlockLiquid(Material p_i45413_1_)
public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_)
getBlocksMovement in class Blockpublic static float getLiquidHeightPercent(int p_149801_0_)
public int getBlockColor()
getBlockColor in class Blockpublic int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_)
colorMultiplier in class Blockpublic IIcon getIcon(int p_149691_1_, int p_149691_2_)
protected int func_149804_e(World p_149804_1_, int p_149804_2_, int p_149804_3_, int p_149804_4_)
protected int getEffectiveFlowDecay(IBlockAccess p_149798_1_, int p_149798_2_, int p_149798_3_, int p_149798_4_)
public boolean renderAsNormalBlock()
renderAsNormalBlock in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class Blockpublic boolean canCollideCheck(int p_149678_1_,
boolean p_149678_2_)
canCollideCheck in class Blockpar1 - block metaDatapar2 - whether the player right-clicked while holding a boatpublic boolean isBlockSolid(IBlockAccess p_149747_1_, int p_149747_2_, int p_149747_3_, int p_149747_4_, int p_149747_5_)
isBlockSolid in class Blockpublic boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_)
shouldSideBeRendered in class Blockpublic AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
getCollisionBoundingBoxFromPool in class Blockpublic int getRenderType()
getRenderType in class Blockpublic Item getItemDropped(int p_149650_1_, java.util.Random p_149650_2_, int p_149650_3_)
getItemDropped in class Blockpublic int quantityDropped(java.util.Random p_149745_1_)
quantityDropped in class Blockpublic void velocityToAddToEntity(World p_149640_1_, int p_149640_2_, int p_149640_3_, int p_149640_4_, Entity p_149640_5_, Vec3 p_149640_6_)
velocityToAddToEntity in class Blockpublic int tickRate(World p_149738_1_)
public int getMixedBrightnessForBlock(IBlockAccess p_149677_1_, int p_149677_2_, int p_149677_3_, int p_149677_4_)
getMixedBrightnessForBlock in class Blockpublic int getRenderBlockPass()
getRenderBlockPass in class Blockpublic void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, java.util.Random p_149734_5_)
randomDisplayTick in class Blockpublic void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
onBlockAdded in class Blockpublic static double getFlowDirection(IBlockAccess p_149802_0_, int p_149802_1_, int p_149802_2_, int p_149802_3_, Material p_149802_4_)
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
onNeighborBlockChange in class Blockprotected void func_149799_m(World p_149799_1_, int p_149799_2_, int p_149799_3_, int p_149799_4_)
public void registerBlockIcons(IIconRegister p_149651_1_)
registerBlockIcons in class Blockpublic static IIcon getLiquidIcon(java.lang.String p_149803_0_)