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 class
BlockStairs.EnumHalf
static class
BlockStairs.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 PropertyDirection
FACING
static PropertyEnum<BlockStairs.EnumHalf>
HALF
static 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 protected
BlockStairs(IBlockState modelState)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.static void
bootstrapStates()
void
breakBlock(World world, BlockPos blockpos, IBlockState var3)
boolean
canCollideCheck(IBlockState iblockstate, boolean flag)
boolean
canPlaceBlockAt(World world, BlockPos blockpos)
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.protected BlockState
createBlockState()
boolean
func_176304_i(IBlockAccess blockAccess, BlockPos pos)
int
func_176305_g(IBlockAccess blockAccess, BlockPos pos)
boolean
func_176306_h(IBlockAccess blockAccess, BlockPos pos)
int
func_176307_f(IBlockAccess blockAccess, BlockPos pos)
IBlockState
getActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)
+ Get the actual Block state of this Block at the given position.EnumWorldBlockLayer
getBlockLayer()
float
getExplosionResistance(Entity entity)
+ Returns how much this block can resist explosions from the passed in entity.MapColor
getMapColor(IBlockState var1)
+ Get the MapColor for this Block and the given BlockStateint
getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata valueint
getMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)
AxisAlignedBB
getSelectedBoundingBox(World world, BlockPos blockpos)
IBlockState
getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Blockstatic boolean
isBlockStairs(Block blockIn)
+ Checks if a block is stairsboolean
isCollidable()
+ Returns if this block is collidable (only used by Fire).boolean
isFullCube()
boolean
isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for renderstatic 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 BlockStateVec3
modifyAcceleration(World world, BlockPos blockpos, Entity entity, Vec3 vec3)
boolean
onBlockActivated(World world, BlockPos blockpos, IBlockState var3, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
void
onBlockAdded(World world, BlockPos blockpos, IBlockState var3)
void
onBlockClicked(World world, BlockPos blockpos, EntityPlayer entityplayer)
void
onBlockDestroyedByExplosion(World world, BlockPos blockpos, Explosion explosion)
+ Called when this Block is destroyed by an Explosionvoid
onBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)
+ Called when a player destroys this BlockIBlockState
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 IBlockstatevoid
onEntityCollidedWithBlock(World world, BlockPos blockpos, Entity entity)
+ Triggered whenever an entity collides with this block (enters into the block)void
randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
void
setBaseCollisionBounds(IBlockAccess worldIn, BlockPos pos)
+ Set the block bounds as the collision bounds for the stairs at the given positionvoid
setBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)
int
tickRate(World world)
+ How many world ticks before tickingvoid
updateTick(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:
setBlockBoundsBasedOnState
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCube
in classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCube
in 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:
addCollisionBoxesToList
in classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
randomDisplayTick
in classBlock
-
onBlockClicked
public void onBlockClicked(World world, BlockPos blockpos, EntityPlayer entityplayer)
- Overrides:
onBlockClicked
in classBlock
-
onBlockDestroyedByPlayer
public void onBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)
+ Called when a player destroys this Block- Overrides:
onBlockDestroyedByPlayer
in classBlock
-
getMixedBrightnessForBlock
public int getMixedBrightnessForBlock(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
getMixedBrightnessForBlock
in classBlock
-
getExplosionResistance
public float getExplosionResistance(Entity entity)
+ Returns how much this block can resist explosions from the passed in entity.- Overrides:
getExplosionResistance
in classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayer
in classBlock
-
tickRate
public int tickRate(World world)
+ How many world ticks before ticking
-
getSelectedBoundingBox
public AxisAlignedBB getSelectedBoundingBox(World world, BlockPos blockpos)
- Overrides:
getSelectedBoundingBox
in classBlock
-
modifyAcceleration
public Vec3 modifyAcceleration(World world, BlockPos blockpos, Entity entity, Vec3 vec3)
- Overrides:
modifyAcceleration
in classBlock
-
isCollidable
public boolean isCollidable()
+ Returns if this block is collidable (only used by Fire). Args: x, y, z- Overrides:
isCollidable
in classBlock
-
canCollideCheck
public boolean canCollideCheck(IBlockState iblockstate, boolean flag)
- Overrides:
canCollideCheck
in classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAt
in classBlock
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
onBlockAdded
in classBlock
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
breakBlock
in classBlock
-
onEntityCollidedWithBlock
public void onEntityCollidedWithBlock(World world, BlockPos blockpos, Entity entity)
+ Triggered whenever an entity collides with this block (enters into the block)- Overrides:
onEntityCollidedWithBlock
in classBlock
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
updateTick
in classBlock
-
onBlockActivated
public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState var3, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
- Overrides:
onBlockActivated
in classBlock
-
onBlockDestroyedByExplosion
public void onBlockDestroyedByExplosion(World world, BlockPos blockpos, Explosion explosion)
+ Called when this Block is destroyed by an Explosion- Overrides:
onBlockDestroyedByExplosion
in classBlock
-
getMapColor
public MapColor getMapColor(IBlockState var1)
+ Get the MapColor for this Block and the given BlockState- Overrides:
getMapColor
in 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:
onBlockPlaced
in 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:
collisionRayTrace
in classBlock
-
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
-
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:
getActualState
in classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockState
in classBlock
-
-