Package net.minecraft.block
Class BlockStairs
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockStairs
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
public class BlockStairs extends Block
+ 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 classBlockStairs.EnumHalfstatic classBlockStairs.EnumShape-
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 PropertyDirectionFACINGstatic PropertyEnum<BlockStairs.EnumHalf>HALFstatic PropertyEnum<BlockStairs.EnumShape>SHAPE-
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 protectedBlockStairs(IBlockState modelState)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollisionBoxesToList(World world, BlockPos blockpos, IBlockState iblockstate, AxisAlignedBB axisalignedbb, java.util.List<AxisAlignedBB> list, Entity entity)+ Add all collision boxes of this Block to the list that intersect with the given mask.static voidbootstrapStates()voidbreakBlock(World world, BlockPos blockpos, IBlockState var3)booleancanCollideCheck(IBlockState iblockstate, boolean flag)booleancanPlaceBlockAt(World world, BlockPos blockpos)MovingObjectPositioncollisionRayTrace(World world, BlockPos blockpos, Vec3 vec3, Vec3 vec31)+ Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.protected BlockStatecreateBlockState()booleanfunc_176304_i(IBlockAccess blockAccess, BlockPos pos)intfunc_176305_g(IBlockAccess blockAccess, BlockPos pos)booleanfunc_176306_h(IBlockAccess blockAccess, BlockPos pos)intfunc_176307_f(IBlockAccess blockAccess, BlockPos pos)IBlockStategetActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)+ Get the actual Block state of this Block at the given position.EnumWorldBlockLayergetBlockLayer()floatgetExplosionResistance(Entity entity)+ Returns how much this block can resist explosions from the passed in entity.MapColorgetMapColor(IBlockState var1)+ Get the MapColor for this Block and the given BlockStateintgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueintgetMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)AxisAlignedBBgetSelectedBoundingBox(World world, BlockPos blockpos)IBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this Blockstatic booleanisBlockStairs(Block blockIn)+ Checks if a block is stairsbooleanisCollidable()+ Returns if this block is collidable (only used by Fire).booleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderstatic booleanisSameStair(IBlockAccess worldIn, BlockPos pos, IBlockState state)+ Check whether there is a stair block at the given position and it has the same properties as the given BlockStateVec3modifyAcceleration(World world, BlockPos blockpos, Entity entity, Vec3 vec3)booleanonBlockActivated(World world, BlockPos blockpos, IBlockState var3, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)voidonBlockAdded(World world, BlockPos blockpos, IBlockState var3)voidonBlockClicked(World world, BlockPos blockpos, EntityPlayer entityplayer)voidonBlockDestroyedByExplosion(World world, BlockPos blockpos, Explosion explosion)+ Called when this Block is destroyed by an ExplosionvoidonBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)+ Called when a player destroys this BlockIBlockStateonBlockPlaced(World world, BlockPos blockpos, EnumFacing enumfacing, float f, float f1, float f2, int i, EntityLivingBase entitylivingbase)+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstatevoidonEntityCollidedWithBlock(World world, BlockPos blockpos, Entity entity)+ Triggered whenever an entity collides with this block (enters into the block)voidrandomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)voidsetBaseCollisionBounds(IBlockAccess worldIn, BlockPos pos)+ Set the block bounds as the collision bounds for the stairs at the given positionvoidsetBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)inttickRate(World world)+ How many world ticks before tickingvoidupdateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)-
Methods inherited from class net.minecraft.block.Block
canDropFromExplosion, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, colorMultiplier, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, onBlockEventReceived, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, quantityDropped, quantityDroppedWithBonus, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, toString
-
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
-
HALF
public static PropertyEnum<BlockStairs.EnumHalf> HALF
-
SHAPE
public static PropertyEnum<BlockStairs.EnumShape> SHAPE
-
-
Constructor Detail
-
BlockStairs
protected BlockStairs(IBlockState modelState)
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCubein classBlock
-
setBaseCollisionBounds
public void setBaseCollisionBounds(IBlockAccess worldIn, BlockPos pos)
+ Set the block bounds as the collision bounds for the stairs at the given position
-
isBlockStairs
public static boolean isBlockStairs(Block blockIn)
+ Checks if a block is stairs
-
isSameStair
public static boolean isSameStair(IBlockAccess worldIn, BlockPos pos, IBlockState state)
+ Check whether there is a stair block at the given position and it has the same properties as the given BlockState
-
func_176307_f
public int func_176307_f(IBlockAccess blockAccess, BlockPos pos)
-
func_176305_g
public int func_176305_g(IBlockAccess blockAccess, BlockPos pos)
-
func_176306_h
public boolean func_176306_h(IBlockAccess blockAccess, BlockPos pos)
-
func_176304_i
public boolean func_176304_i(IBlockAccess blockAccess, BlockPos pos)
-
addCollisionBoxesToList
public void addCollisionBoxesToList(World world, BlockPos blockpos, IBlockState iblockstate, AxisAlignedBB axisalignedbb, java.util.List<AxisAlignedBB> list, Entity entity)
+ Add all collision boxes of this Block to the list that intersect with the given mask.- Overrides:
addCollisionBoxesToListin classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
randomDisplayTickin classBlock
-
onBlockClicked
public void onBlockClicked(World world, BlockPos blockpos, EntityPlayer entityplayer)
- Overrides:
onBlockClickedin classBlock
-
onBlockDestroyedByPlayer
public void onBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)
+ Called when a player destroys this Block- Overrides:
onBlockDestroyedByPlayerin classBlock
-
getMixedBrightnessForBlock
public int getMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
getMixedBrightnessForBlockin classBlock
-
getExplosionResistance
public float getExplosionResistance(Entity entity)
+ Returns how much this block can resist explosions from the passed in entity.- Overrides:
getExplosionResistancein classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
tickRate
public int tickRate(World world)
+ How many world ticks before ticking
-
getSelectedBoundingBox
public AxisAlignedBB getSelectedBoundingBox(World world, BlockPos blockpos)
- Overrides:
getSelectedBoundingBoxin classBlock
-
modifyAcceleration
public Vec3 modifyAcceleration(World world, BlockPos blockpos, Entity entity, Vec3 vec3)
- Overrides:
modifyAccelerationin classBlock
-
isCollidable
public boolean isCollidable()
+ Returns if this block is collidable (only used by Fire). Args: x, y, z- Overrides:
isCollidablein classBlock
-
canCollideCheck
public boolean canCollideCheck(IBlockState iblockstate, boolean flag)
- Overrides:
canCollideCheckin classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAtin classBlock
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
onBlockAddedin classBlock
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
breakBlockin classBlock
-
onEntityCollidedWithBlock
public void onEntityCollidedWithBlock(World world, BlockPos blockpos, Entity entity)
+ Triggered whenever an entity collides with this block (enters into the block)- Overrides:
onEntityCollidedWithBlockin classBlock
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
updateTickin classBlock
-
onBlockActivated
public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState var3, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
- Overrides:
onBlockActivatedin classBlock
-
onBlockDestroyedByExplosion
public void onBlockDestroyedByExplosion(World world, BlockPos blockpos, Explosion explosion)
+ Called when this Block is destroyed by an Explosion- Overrides:
onBlockDestroyedByExplosionin classBlock
-
getMapColor
public MapColor getMapColor(IBlockState var1)
+ Get the MapColor for this Block and the given BlockState- Overrides:
getMapColorin classBlock
-
onBlockPlaced
public IBlockState onBlockPlaced(World world, BlockPos blockpos, EnumFacing enumfacing, float f, float f1, float f2, int i, EntityLivingBase entitylivingbase)
+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate- Overrides:
onBlockPlacedin classBlock
-
collisionRayTrace
public MovingObjectPosition collisionRayTrace(World world, BlockPos blockpos, Vec3 vec3, Vec3 vec31)
+ Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.- Overrides:
collisionRayTracein classBlock
-
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
-
getActualState
public IBlockState getActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)
+ Get the actual Block state of this Block at the given position. This applies properties not visible in the metadata, such as fence connections.- Overrides:
getActualStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein classBlock
-
-