Package net.minecraft.block
Class BlockLiquid
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockLiquid
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockDynamicLiquid
,BlockStaticLiquid
public abstract class BlockLiquid extends Block
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.EnumOffsetType, Block.SoundType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyInteger
LEVEL
-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, forceRender, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, noRender, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlockLiquid(Material materialIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canCollideCheck(IBlockState iblockstate, boolean flag)
boolean
checkForMixing(World worldIn, BlockPos pos, IBlockState state)
int
colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
protected BlockState
createBlockState()
boolean
func_176364_g(IBlockAccess blockAccess, BlockPos pos)
EnumWorldBlockLayer
getBlockLayer()
AxisAlignedBB
getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
protected int
getEffectiveFlowDecay(IBlockAccess worldIn, BlockPos pos)
static double
getFlowDirection(IBlockAccess worldIn, BlockPos pos, Material materialIn)
static BlockDynamicLiquid
getFlowingBlock(Material materialIn)
protected Vec3
getFlowVector(IBlockAccess worldIn, BlockPos pos)
Item
getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.protected int
getLevel(IBlockAccess worldIn, BlockPos pos)
static float
getLiquidHeightPercent(int meta)
+ Returns the percentage of the liquid block that is air, based on the given flow decay of the liquidint
getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata valueint
getMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)
int
getRenderType()
+ The type of render function called.IBlockState
getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Blockstatic BlockStaticLiquid
getStaticBlock(Material materialIn)
boolean
isBlockSolid(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)
+ Whether this Block is solid on the given Sideboolean
isFullCube()
boolean
isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for renderboolean
isPassable(IBlockAccess var1, BlockPos var2)
Vec3
modifyAcceleration(World world, BlockPos blockpos, Entity var3, Vec3 vec3)
void
onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
void
onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.int
quantityDropped(EaglercraftRandom var1)
+ Returns the quantity of items to drop on block destruction.void
randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
boolean
shouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)
int
tickRate(World world)
+ How many world ticks before tickingprotected void
triggerMixEffects(World worldIn, BlockPos pos)
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, breakBlock, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDroppedWithBonus, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, spawnAsEntity, toString, updateTick
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Field Detail
-
LEVEL
public static final PropertyInteger LEVEL
-
-
Constructor Detail
-
BlockLiquid
protected BlockLiquid(Material materialIn)
-
-
Method Detail
-
isPassable
public boolean isPassable(IBlockAccess var1, BlockPos var2)
- Overrides:
isPassable
in classBlock
-
colorMultiplier
public int colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
- Overrides:
colorMultiplier
in classBlock
-
getLiquidHeightPercent
public static float getLiquidHeightPercent(int meta)
+ Returns the percentage of the liquid block that is air, based on the given flow decay of the liquid
-
getLevel
protected int getLevel(IBlockAccess worldIn, BlockPos pos)
-
getEffectiveFlowDecay
protected int getEffectiveFlowDecay(IBlockAccess worldIn, BlockPos pos)
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCube
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCube
in classBlock
-
canCollideCheck
public boolean canCollideCheck(IBlockState iblockstate, boolean flag)
- Overrides:
canCollideCheck
in classBlock
-
isBlockSolid
public boolean isBlockSolid(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)
+ Whether this Block is solid on the given Side- Overrides:
isBlockSolid
in classBlock
-
shouldSideBeRendered
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)
- Overrides:
shouldSideBeRendered
in classBlock
-
func_176364_g
public boolean func_176364_g(IBlockAccess blockAccess, BlockPos pos)
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
- Overrides:
getCollisionBoundingBox
in classBlock
-
getRenderType
public int getRenderType()
+ The type of render function called. 3 for standard block models, 2 for TESR's, 1 for liquids, -1 is no render- Overrides:
getRenderType
in classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDropped
in classBlock
-
quantityDropped
public int quantityDropped(EaglercraftRandom var1)
+ Returns the quantity of items to drop on block destruction.- Overrides:
quantityDropped
in classBlock
-
getFlowVector
protected Vec3 getFlowVector(IBlockAccess worldIn, BlockPos pos)
-
modifyAcceleration
public Vec3 modifyAcceleration(World world, BlockPos blockpos, Entity var3, Vec3 vec3)
- Overrides:
modifyAcceleration
in classBlock
-
tickRate
public int tickRate(World world)
+ How many world ticks before ticking
-
getMixedBrightnessForBlock
public int getMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
getMixedBrightnessForBlock
in classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayer
in classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
randomDisplayTick
in classBlock
-
getFlowDirection
public static double getFlowDirection(IBlockAccess worldIn, BlockPos pos, Material materialIn)
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
onBlockAdded
in classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChange
in classBlock
-
checkForMixing
public boolean checkForMixing(World worldIn, BlockPos pos, IBlockState state)
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMeta
in classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromState
in classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockState
in classBlock
-
getFlowingBlock
public static BlockDynamicLiquid getFlowingBlock(Material materialIn)
-
getStaticBlock
public static BlockStaticLiquid getStaticBlock(Material materialIn)
-
-