public class BlockPlanter extends BlockBase<BlockTypePlanter>
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
MANUAL |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, material, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
BlockPlanter(BlockTypePlanter blockType) |
| Modifier and Type | Method and Description |
|---|---|
protected net.minecraft.block.state.BlockStateContainer |
createBlockState() |
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.world.World world,
net.minecraft.block.state.IBlockState state) |
int |
damageDropped(net.minecraft.block.state.IBlockState state) |
net.minecraft.item.ItemStack |
get(boolean isManual) |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
net.minecraft.util.BlockRenderLayer |
getRenderLayer() |
net.minecraft.block.state.IBlockState |
getStateForPlacement(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.util.EnumHand hand) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
void |
getSubBlocks(net.minecraft.creativetab.CreativeTabs itemIn,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
static boolean |
isManual(net.minecraft.item.ItemStack stack) |
void |
randomDisplayTick(net.minecraft.block.state.IBlockState stateIn,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand) |
void |
registerStateMapper() |
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, breakBlock, collisionRayTrace, createNewTileEntity, getBlockState, getCollisionBoundingBox, getPlacementRotation, getRenderType, getSelectedBoundingBox, getUseNeighborBrightness, init, isFullCube, isNormalCube, isOpaqueCube, onBlockActivated, onBlockPlacedBy, registerModel, registerSprites, rotateAfterPlacement, withMirror, withRotationonNeighborChangeaddCollisionBoxToList, addCollisionBoxToList, addInformation, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFaceShape, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLiquidHeight, getBoundingBox, getComparatorInputOverride, getCreativeTab, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getPushReaction, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateAtViewpoint, getStateById, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getTranslationKey, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, neighborChanged, observedNeighborChange, onBlockAdded, onBlockClicked, onBlockExploded, onBlockHarvested, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlantGrow, onPlayerDestroy, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setTranslationKey, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTickpublic BlockPlanter(BlockTypePlanter blockType)
protected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class BlockBase<BlockTypePlanter>public void randomDisplayTick(net.minecraft.block.state.IBlockState stateIn,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand)
randomDisplayTick in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class BlockBase<BlockTypePlanter>public int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class BlockBase<BlockTypePlanter>public net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.world.World world,
net.minecraft.block.state.IBlockState state)
createTileEntity in class net.minecraft.block.Blockpublic int damageDropped(net.minecraft.block.state.IBlockState state)
damageDropped in class net.minecraft.block.Blockpublic void registerStateMapper()
registerStateMapper in interface IStateMapperRegisterregisterStateMapper in class BlockBase<BlockTypePlanter>public net.minecraft.util.BlockRenderLayer getRenderLayer()
getRenderLayer in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getStateForPlacement(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.util.EnumHand hand)
getStateForPlacement in class net.minecraft.block.Blockpublic void getSubBlocks(net.minecraft.creativetab.CreativeTabs itemIn,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
getSubBlocks in class net.minecraft.block.Blockpublic static boolean isManual(net.minecraft.item.ItemStack stack)
public net.minecraft.item.ItemStack get(boolean isManual)