Class NetherFungusBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.VegetationBlock
net.minecraft.world.level.block.NetherFungusBlock
- All Implemented Interfaces:
FeatureElement, BonemealableBlock, ItemLike, IBlockExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class Block
Block.UpdateFlagsNested classes/interfaces inherited from class BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.PostProcess, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface BonemealableBlock
BonemealableBlock.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate final ResourceKey<Feature> private final Blockprivate static final VoxelShapeFields inherited from class Block
BLOCK_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_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class BlockBehaviour
bounceRestitution, descriptionId, drops, dynamicShape, explosionResistance, fallDistanceReduction, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionNetherFungusBlock(ResourceKey<Feature> feature, Block requiredBlock, TagKey<Block> supportBlocks, BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptiongetFeature(LevelReader level) protected VoxelShapegetShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) booleanisBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source) booleanisValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source) protected booleanmayPlaceOn(BlockState state, BlockGetter level, BlockPos pos) voidperformBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source) Methods inherited from class VegetationBlock
canSurvive, isPathfindable, propagatesSkylightDown, updateShapeMethods inherited from class Block
animateTick, asBlock, asItem, bounceOn, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, createBlockStateDefinition, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, fallOn, getBounceRestitution, getDrops, getDrops, getExplosionResistance, getFallDistanceReduction, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyByEntityParticles, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class BlockBehaviour
affectNeighborsAfterRemoval, attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightDampening, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, ownSignal, properties, randomTick, requiredFeatures, rotate, shouldChangedStateKeepBlockEntity, shouldRedstoneWireConnectTo, showAsInteractableInSpectatorMode, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BonemealableBlock
getParticlePos, getTypeMethods inherited from interface FeatureElement
isEnabledMethods inherited from interface IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBlockPathType, getBounceRestitution, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRelocability, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, ignitedByLava, isBurning, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
-
Field Details
-
BONEMEAL_SUCCESS_PROBABILITY
private static final double BONEMEAL_SUCCESS_PROBABILITY- See Also:
-
SHAPE
-
requiredBlock
-
feature
-
supportBlocks
-
-
Constructor Details
-
NetherFungusBlock
public NetherFungusBlock(ResourceKey<Feature> feature, Block requiredBlock, TagKey<Block> supportBlocks, BlockBehaviour.Properties properties)
-
-
Method Details
-
getShape
protected VoxelShape getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) - Overrides:
getShapein classBlockBehaviour
-
mayPlaceOn
- Overrides:
mayPlaceOnin classVegetationBlock
-
getFeature
-
isValidBonemealTarget
public boolean isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source) - Specified by:
isValidBonemealTargetin interfaceBonemealableBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source) - Specified by:
isBonemealSuccessin interfaceBonemealableBlock
-
performBonemeal
public void performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source) - Specified by:
performBonemealin interfaceBonemealableBlock
-