Package net.minecraft.block
Class BlockStoneSlab
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockSlab
-
- net.minecraft.block.BlockStoneSlab
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockDoubleStoneSlab
,BlockHalfStoneSlab
public abstract class BlockStoneSlab extends BlockSlab
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockStoneSlab.EnumType
-
Nested classes/interfaces inherited from class net.minecraft.block.BlockSlab
BlockSlab.EnumBlockHalf
-
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 PropertyBool
SEAMLESS
static PropertyEnum<BlockStoneSlab.EnumType>
VARIANT
-
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 Constructor Description BlockStoneSlab()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bootstrapStates()
protected BlockState
createBlockState()
int
damageDropped(IBlockState iblockstate)
+ Gets the metadata of the item this Block can drop.Item
getItem(World var1, BlockPos var2)
Item
getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.MapColor
getMapColor(IBlockState iblockstate)
+ Get the MapColor for this Block and the given BlockStateint
getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata valueIBlockState
getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Blockvoid
getSubBlocks(Item item, CreativeTabs var2, java.util.List<ItemStack> list)
+ returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)java.lang.String
getUnlocalizedName(int i)
+ Returns the slab block name with the type associated with itjava.lang.Object
getVariant(ItemStack itemstack)
IProperty<?>
getVariantProperty()
-
Methods inherited from class net.minecraft.block.BlockSlab
addCollisionBoxesToList, canSilkHarvest, getDamageValue, isDouble, isFullCube, isOpaqueCube, isSlab, onBlockPlaced, quantityDropped, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, shouldSideBeRendered
-
Methods inherited from class net.minecraft.block.Block
breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, 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, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getLightOpacity, getLightValue, getLocalizedName, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, spawnAsEntity, tickRate, 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
-
SEAMLESS
public static final PropertyBool SEAMLESS
-
VARIANT
public static PropertyEnum<BlockStoneSlab.EnumType> VARIANT
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDropped
in classBlock
-
getUnlocalizedName
public java.lang.String getUnlocalizedName(int i)
+ Returns the slab block name with the type associated with it- Specified by:
getUnlocalizedName
in classBlockSlab
-
getVariantProperty
public IProperty<?> getVariantProperty()
- Specified by:
getVariantProperty
in classBlockSlab
-
getVariant
public java.lang.Object getVariant(ItemStack itemstack)
- Specified by:
getVariant
in classBlockSlab
-
getSubBlocks
public void getSubBlocks(Item item, CreativeTabs var2, java.util.List<ItemStack> list)
+ returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)- Overrides:
getSubBlocks
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
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockState
in classBlock
-
damageDropped
public int damageDropped(IBlockState iblockstate)
+ 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:
damageDropped
in classBlock
-
getMapColor
public MapColor getMapColor(IBlockState iblockstate)
+ Get the MapColor for this Block and the given BlockState- Overrides:
getMapColor
in classBlock
-
-