Package net.minecraft.world.level.block
Class CocoaBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HorizontalDirectionalBlock
net.minecraft.world.level.block.CocoaBlock
- All Implemented Interfaces:
- FeatureElement,- BonemealableBlock,- ItemLike,- IBlockExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IntegerPropertyprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intstatic final com.mojang.serialization.MapCodec<CocoaBlock>protected static final VoxelShape[]static final intprotected static final VoxelShape[]protected static final VoxelShape[]protected static final VoxelShape[]Fields inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlockFACINGFields inherited from class net.minecraft.world.level.block.BlockBLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanSurvive(BlockState p_51767_, LevelReader p_51768_, BlockPos p_51769_) com.mojang.serialization.MapCodec<CocoaBlock>codec()protected voidgetShape(BlockState p_51787_, BlockGetter p_51788_, BlockPos p_51789_, CollisionContext p_51790_) getStateForPlacement(BlockPlaceContext p_51750_) booleanisBonemealSuccess(Level p_220995_, RandomSource p_220996_, BlockPos p_220997_, BlockState p_220998_) booleanisPathfindable(BlockState p_51762_, BlockGetter p_51763_, BlockPos p_51764_, PathComputationType p_51765_) booleanisRandomlyTicking(BlockState p_51780_) booleanisValidBonemealTarget(LevelReader p_256189_, BlockPos p_51753_, BlockState p_51754_) voidperformBonemeal(ServerLevel p_220990_, RandomSource p_220991_, BlockPos p_220992_, BlockState p_220993_) voidrandomTick(BlockState p_221000_, ServerLevel p_221001_, BlockPos p_221002_, RandomSource p_221003_) updateShape(BlockState p_51771_, Direction p_51772_, BlockState p_51773_, LevelAccessor p_51774_, BlockPos p_51775_, BlockPos p_51776_) Methods inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlockmirror, rotateMethods inherited from class net.minecraft.world.level.block.BlockanimateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, properties, propertiesCodec, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtensionaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
- 
Field Details- 
CODEC
- 
MAX_AGEpublic static final int MAX_AGE- See Also:
 
- 
AGE
- 
AGE_0_WIDTHprotected static final int AGE_0_WIDTH- See Also:
 
- 
AGE_0_HEIGHTprotected static final int AGE_0_HEIGHT- See Also:
 
- 
AGE_0_HALFWIDTHprotected static final int AGE_0_HALFWIDTH- See Also:
 
- 
AGE_1_WIDTHprotected static final int AGE_1_WIDTH- See Also:
 
- 
AGE_1_HEIGHTprotected static final int AGE_1_HEIGHT- See Also:
 
- 
AGE_1_HALFWIDTHprotected static final int AGE_1_HALFWIDTH- See Also:
 
- 
AGE_2_WIDTHprotected static final int AGE_2_WIDTH- See Also:
 
- 
AGE_2_HEIGHTprotected static final int AGE_2_HEIGHT- See Also:
 
- 
AGE_2_HALFWIDTHprotected static final int AGE_2_HALFWIDTH- See Also:
 
- 
EAST_AABB
- 
WEST_AABB
- 
NORTH_AABB
- 
SOUTH_AABB
 
- 
- 
Constructor Details- 
CocoaBlock
 
- 
- 
Method Details- 
codec- Specified by:
- codecin class- HorizontalDirectionalBlock
 
- 
isRandomlyTicking- Overrides:
- isRandomlyTickingin class- Block
 
- 
randomTickpublic void randomTick(BlockState p_221000_, ServerLevel p_221001_, BlockPos p_221002_, RandomSource p_221003_) - Overrides:
- randomTickin class- BlockBehaviour
 
- 
canSurvive- Overrides:
- canSurvivein class- BlockBehaviour
 
- 
getShapepublic VoxelShape getShape(BlockState p_51787_, BlockGetter p_51788_, BlockPos p_51789_, CollisionContext p_51790_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
updateShapepublic BlockState updateShape(BlockState p_51771_, Direction p_51772_, BlockState p_51773_, LevelAccessor p_51774_, BlockPos p_51775_, BlockPos p_51776_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
isValidBonemealTarget- Specified by:
- isValidBonemealTargetin interface- BonemealableBlock
 
- 
isBonemealSuccesspublic boolean isBonemealSuccess(Level p_220995_, RandomSource p_220996_, BlockPos p_220997_, BlockState p_220998_) - Specified by:
- isBonemealSuccessin interface- BonemealableBlock
 
- 
performBonemealpublic void performBonemeal(ServerLevel p_220990_, RandomSource p_220991_, BlockPos p_220992_, BlockState p_220993_) - Specified by:
- performBonemealin interface- BonemealableBlock
 
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
isPathfindablepublic boolean isPathfindable(BlockState p_51762_, BlockGetter p_51763_, BlockPos p_51764_, PathComputationType p_51765_) - Overrides:
- isPathfindablein class- BlockBehaviour
 
 
-