Package net.minecraft.world.level.block
Class CocoaBlock
- All Implemented Interfaces:
BonemealableBlock
,ItemLike
,IForgeBlock
,IForgeRegistryEntry<Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic IntegerProperty
protected static int
protected static int
protected static int
protected static int
protected static int
protected static int
protected static int
protected static int
protected static int
protected static VoxelShape[]
static int
protected static VoxelShape[]
protected static VoxelShape[]
protected static VoxelShape[]
Fields inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlock
FACING
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, LOGGER, RANDOM, 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_DROPS, UPDATE_SUPPRESS_LIGHT
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSurvive(BlockState p_51767_, LevelReader p_51768_, BlockPos p_51769_)
protected void
createBlockStateDefinition(StateDefinition.Builder<Block,BlockState> p_51778_)
getShape(BlockState p_51787_, BlockGetter p_51788_, BlockPos p_51789_, CollisionContext p_51790_)
getStateForPlacement(BlockPlaceContext p_51750_)
boolean
isBonemealSuccess(Level p_51757_, Random p_51758_, BlockPos p_51759_, BlockState p_51760_)
boolean
isPathfindable(BlockState p_51762_, BlockGetter p_51763_, BlockPos p_51764_, PathComputationType p_51765_)
boolean
isRandomlyTicking(BlockState p_51780_)
boolean
isValidBonemealTarget(BlockGetter p_51752_, BlockPos p_51753_, BlockState p_51754_, boolean p_51755_)
void
performBonemeal(ServerLevel p_51745_, Random p_51746_, BlockPos p_51747_, BlockState p_51748_)
void
randomTick(BlockState p_51782_, ServerLevel p_51783_, BlockPos p_51784_, Random p_51785_)
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.HorizontalDirectionalBlock
mirror, rotate
Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getTags, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isSignalSource, neighborChanged, onPlace, onProjectileHit, onRemove, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getPickBlock, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onNeighborChange, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
Field Details
-
MAX_AGE
public static final int MAX_AGE- See Also:
- Constant Field Values
-
AGE
-
AGE_0_WIDTH
protected static final int AGE_0_WIDTH- See Also:
- Constant Field Values
-
AGE_0_HEIGHT
protected static final int AGE_0_HEIGHT- See Also:
- Constant Field Values
-
AGE_0_HALFWIDTH
protected static final int AGE_0_HALFWIDTH- See Also:
- Constant Field Values
-
AGE_1_WIDTH
protected static final int AGE_1_WIDTH- See Also:
- Constant Field Values
-
AGE_1_HEIGHT
protected static final int AGE_1_HEIGHT- See Also:
- Constant Field Values
-
AGE_1_HALFWIDTH
protected static final int AGE_1_HALFWIDTH- See Also:
- Constant Field Values
-
AGE_2_WIDTH
protected static final int AGE_2_WIDTH- See Also:
- Constant Field Values
-
AGE_2_HEIGHT
protected static final int AGE_2_HEIGHT- See Also:
- Constant Field Values
-
AGE_2_HALFWIDTH
protected static final int AGE_2_HALFWIDTH- See Also:
- Constant Field Values
-
EAST_AABB
-
WEST_AABB
-
NORTH_AABB
-
SOUTH_AABB
-
-
Constructor Details
-
CocoaBlock
-
-
Method Details
-
isRandomlyTicking
- Overrides:
isRandomlyTicking
in classBlock
-
randomTick
public void randomTick(BlockState p_51782_, ServerLevel p_51783_, BlockPos p_51784_, Random p_51785_)- Overrides:
randomTick
in classBlockBehaviour
-
canSurvive
- Overrides:
canSurvive
in classBlockBehaviour
-
getShape
public VoxelShape getShape(BlockState p_51787_, BlockGetter p_51788_, BlockPos p_51789_, CollisionContext p_51790_)- Overrides:
getShape
in classBlockBehaviour
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
updateShape
public BlockState updateShape(BlockState p_51771_, Direction p_51772_, BlockState p_51773_, LevelAccessor p_51774_, BlockPos p_51775_, BlockPos p_51776_)- Overrides:
updateShape
in classBlockBehaviour
-
isValidBonemealTarget
public boolean isValidBonemealTarget(BlockGetter p_51752_, BlockPos p_51753_, BlockState p_51754_, boolean p_51755_)- Specified by:
isValidBonemealTarget
in interfaceBonemealableBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(Level p_51757_, Random p_51758_, BlockPos p_51759_, BlockState p_51760_)- Specified by:
isBonemealSuccess
in interfaceBonemealableBlock
-
performBonemeal
public void performBonemeal(ServerLevel p_51745_, Random p_51746_, BlockPos p_51747_, BlockState p_51748_)- Specified by:
performBonemeal
in interfaceBonemealableBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
isPathfindable
public boolean isPathfindable(BlockState p_51762_, BlockGetter p_51763_, BlockPos p_51764_, PathComputationType p_51765_)- Overrides:
isPathfindable
in classBlockBehaviour
-