Package net.minecraft.block
Class BlockAnvil
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockFalling
-
- net.minecraft.block.BlockAnvil
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
public class BlockAnvil extends BlockFalling
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockAnvil.Anvil-
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 PropertyIntegerDAMAGEstatic PropertyDirectionFACING-
Fields inherited from class net.minecraft.block.BlockFalling
fallInstantly
-
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 protectedBlockAnvil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BlockStatecreateBlockState()intdamageDropped(IBlockState state)+ Gets the metadata of the item this Block can drop.intgetMetaFromState(IBlockState state)+ Convert the BlockState into the correct metadata valueIBlockStategetStateForEntityRender(IBlockState state)+ Possibly modify the given BlockState before rendering it on an Entity (Minecarts, Endermen, ...)IBlockStategetStateFromMeta(int meta)+ Convert the given metadata into a BlockState for this BlockvoidgetSubBlocks(Item itemIn, CreativeTabs tab, java.util.List<ItemStack> list)+ returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)booleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderbooleanonBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)IBlockStateonBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstatevoidonEndFalling(World parWorld, BlockPos parBlockPos)protected voidonStartFalling(EntityFallingBlock fallingEntity)voidsetBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos)booleanshouldSideBeRendered(IBlockAccess worldIn, BlockPos pos, EnumFacing side)-
Methods inherited from class net.minecraft.block.BlockFalling
canFallInto, onBlockAdded, onNeighborBlockChange, tickRate
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createStackedBlock, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, 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
-
FACING
public static final PropertyDirection FACING
-
DAMAGE
public static final PropertyInteger DAMAGE
-
-
Method Detail
-
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
-
onBlockPlaced
public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate- Overrides:
onBlockPlacedin classBlock
-
damageDropped
public int damageDropped(IBlockState state)
+ Gets the metadata of the item this Block can drop. This method is called when the block gets destroyed. It returns the metadata of the dropped item based on the old metadata of the block.- Overrides:
damageDroppedin classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
getSubBlocks
public void getSubBlocks(Item itemIn, CreativeTabs tab, java.util.List<ItemStack> list)
+ returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)- Overrides:
getSubBlocksin classBlock
-
onStartFalling
protected void onStartFalling(EntityFallingBlock fallingEntity)
- Overrides:
onStartFallingin classBlockFalling
-
onEndFalling
public void onEndFalling(World parWorld, BlockPos parBlockPos)
- Overrides:
onEndFallingin classBlockFalling
-
shouldSideBeRendered
public boolean shouldSideBeRendered(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
- Overrides:
shouldSideBeRenderedin classBlock
-
getStateForEntityRender
public IBlockState getStateForEntityRender(IBlockState state)
+ Possibly modify the given BlockState before rendering it on an Entity (Minecarts, Endermen, ...)- Overrides:
getStateForEntityRenderin classBlock
-
getStateFromMeta
public IBlockState getStateFromMeta(int meta)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMetain classBlock
-
onBlockActivated
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)
- Overrides:
onBlockActivatedin classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState state)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein classBlock
-
-