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 PropertyIntegerLEVEL-
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 protectedBlockLiquid(Material materialIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCollideCheck(IBlockState iblockstate, boolean flag)booleancheckForMixing(World worldIn, BlockPos pos, IBlockState state)intcolorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)protected BlockStatecreateBlockState()booleanfunc_176364_g(IBlockAccess blockAccess, BlockPos pos)EnumWorldBlockLayergetBlockLayer()AxisAlignedBBgetCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)protected intgetEffectiveFlowDecay(IBlockAccess worldIn, BlockPos pos)static doublegetFlowDirection(IBlockAccess worldIn, BlockPos pos, Material materialIn)static BlockDynamicLiquidgetFlowingBlock(Material materialIn)protected Vec3getFlowVector(IBlockAccess worldIn, BlockPos pos)ItemgetItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)+ Get the Item that this Block should drop when harvested.protected intgetLevel(IBlockAccess worldIn, BlockPos pos)static floatgetLiquidHeightPercent(int meta)+ Returns the percentage of the liquid block that is air, based on the given flow decay of the liquidintgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueintgetMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)intgetRenderType()+ The type of render function called.IBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this Blockstatic BlockStaticLiquidgetStaticBlock(Material materialIn)booleanisBlockSolid(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)+ Whether this Block is solid on the given SidebooleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderbooleanisPassable(IBlockAccess var1, BlockPos var2)Vec3modifyAcceleration(World world, BlockPos blockpos, Entity var3, Vec3 vec3)voidonBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)voidonNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)+ Called when a neighboring block changes.intquantityDropped(EaglercraftRandom var1)+ Returns the quantity of items to drop on block destruction.voidrandomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)booleanshouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)inttickRate(World world)+ How many world ticks before tickingprotected voidtriggerMixEffects(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:
isPassablein classBlock
-
colorMultiplier
public int colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
- Overrides:
colorMultiplierin 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:
isFullCubein classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlock
-
canCollideCheck
public boolean canCollideCheck(IBlockState iblockstate, boolean flag)
- Overrides:
canCollideCheckin classBlock
-
isBlockSolid
public boolean isBlockSolid(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)
+ Whether this Block is solid on the given Side- Overrides:
isBlockSolidin classBlock
-
shouldSideBeRendered
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing)
- Overrides:
shouldSideBeRenderedin classBlock
-
func_176364_g
public boolean func_176364_g(IBlockAccess blockAccess, BlockPos pos)
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
- Overrides:
getCollisionBoundingBoxin 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:
getRenderTypein classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDroppedin classBlock
-
quantityDropped
public int quantityDropped(EaglercraftRandom var1)
+ Returns the quantity of items to drop on block destruction.- Overrides:
quantityDroppedin classBlock
-
getFlowVector
protected Vec3 getFlowVector(IBlockAccess worldIn, BlockPos pos)
-
modifyAcceleration
public Vec3 modifyAcceleration(World world, BlockPos blockpos, Entity var3, Vec3 vec3)
- Overrides:
modifyAccelerationin classBlock
-
tickRate
public int tickRate(World world)
+ How many world ticks before ticking
-
getMixedBrightnessForBlock
public int getMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
getMixedBrightnessForBlockin classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
randomDisplayTickin classBlock
-
getFlowDirection
public static double getFlowDirection(IBlockAccess worldIn, BlockPos pos, Material materialIn)
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
onBlockAddedin classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChangein 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:
getStateFromMetain classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein classBlock
-
getFlowingBlock
public static BlockDynamicLiquid getFlowingBlock(Material materialIn)
-
getStaticBlock
public static BlockStaticLiquid getStaticBlock(Material materialIn)
-
-