public class DoublePlantBlock extends AncientPlantBlock
| Modifier and Type | Class and Description |
|---|---|
static class |
DoublePlantBlock.BlockHalf |
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyEnum<DoublePlantBlock.BlockHalf> |
HALF |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
DoublePlantBlock() |
DoublePlantBlock(net.minecraft.block.material.Material material) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBlockStay(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
protected boolean |
canPlace(net.minecraft.block.state.IBlockState down,
net.minecraft.block.state.IBlockState here,
net.minecraft.block.state.IBlockState up) |
boolean |
canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
protected void |
checkAndDropBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
protected net.minecraft.block.state.BlockStateContainer |
createBlockState() |
int |
damageDropped(net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
getActualState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.item.Item |
getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune) |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
boolean |
isReplaceable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
void |
onBlockHarvested(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player) |
void |
onBlockPlacedBy(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
boolean |
removedByPlayer(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player,
boolean willHarvest) |
protected void |
spread(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position) |
findGround, getOffsetType, isNearWater, updateTickcanSustainBush, getBlockFaceShape, getBlockLayer, getCollisionBoundingBox, getPlant, getPlantType, isFullCube, isOpaqueCube, neighborChangedaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, addRunningEffects, beginLeavesDecay, breakBlock, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffset, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, 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, isNormalCube, isPassable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, observedNeighborChange, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, withMirror, withRotationpublic static final net.minecraft.block.properties.PropertyEnum<DoublePlantBlock.BlockHalf> HALF
public DoublePlantBlock(net.minecraft.block.material.Material material)
public DoublePlantBlock()
public net.minecraft.util.math.AxisAlignedBB getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos)
getBoundingBox in class net.minecraft.block.BlockBushpublic boolean canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
canPlaceBlockAt in class net.minecraft.block.BlockBushpublic boolean isReplaceable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
isReplaceable in class net.minecraft.block.Blockpublic int damageDropped(net.minecraft.block.state.IBlockState state)
damageDropped in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getActualState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos)
getActualState in class net.minecraft.block.Blockpublic int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class net.minecraft.block.Blockprotected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class net.minecraft.block.Blockpublic void onBlockPlacedBy(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class net.minecraft.block.Blockprotected void checkAndDropBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
checkAndDropBlock in class net.minecraft.block.BlockBushpublic boolean canBlockStay(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
canBlockStay in class net.minecraft.block.BlockBushpublic net.minecraft.item.Item getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune)
getItemDropped in class net.minecraft.block.Blockpublic void onBlockHarvested(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player)
onBlockHarvested in class net.minecraft.block.Blockpublic boolean removedByPlayer(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player,
boolean willHarvest)
removedByPlayer in class net.minecraft.block.Blockprotected void spread(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position)
spread in class AncientPlantBlockprotected boolean canPlace(net.minecraft.block.state.IBlockState down,
net.minecraft.block.state.IBlockState here,
net.minecraft.block.state.IBlockState up)
canPlace in class AncientPlantBlock