Package paulevs.edenring.blocks.bases
Class PottableSaplings<F extends net.minecraft.world.level.levelgen.feature.Feature<FC>,FC extends net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration>
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BushBlock
net.minecraft.world.level.block.SaplingBlock
org.betterx.bclib.blocks.FeatureSaplingBlock<F,FC>
paulevs.edenring.blocks.bases.PottableSaplings<F,FC>
- All Implemented Interfaces:
net.fabricmc.fabric.api.block.v1.FabricBlock,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.BonemealableBlock,net.minecraft.world.level.ItemLike,org.betterx.bclib.api.v3.datagen.DropSelfLootProvider<org.betterx.bclib.blocks.FeatureSaplingBlock>,org.betterx.bclib.behaviours.interfaces.BehaviourCompostable,org.betterx.bclib.behaviours.interfaces.BehaviourPlantLike,org.betterx.bclib.behaviours.interfaces.BehaviourSapling,org.betterx.bclib.behaviours.interfaces.BehaviourSaplingLike,org.betterx.bclib.behaviours.interfaces.BlockBehaviour,org.betterx.bclib.interfaces.ItemModelProvider,org.betterx.bclib.interfaces.RenderLayerProvider,org.betterx.bclib.interfaces.RuntimeBlockModelProvider,org.betterx.bclib.interfaces.SurvivesOn,org.betterx.bclib.interfaces.tools.AddMineableHoe,org.betterx.bclib.interfaces.tools.HasMinableBehaviour,org.betterx.wover.loot.api.BlockLootProvider,PottedPlant
- Direct Known Subclasses:
AuritisSaplingBlock
public abstract class PottableSaplings<F extends net.minecraft.world.level.levelgen.feature.Feature<FC>,FC extends net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration>
extends org.betterx.bclib.blocks.FeatureSaplingBlock<F,FC>
implements PottedPlant, org.betterx.bclib.behaviours.interfaces.BehaviourSapling, org.betterx.bclib.interfaces.SurvivesOn
-
Nested Class Summary
Nested classes/interfaces inherited from class org.betterx.bclib.blocks.FeatureSaplingBlock
org.betterx.bclib.blocks.FeatureSaplingBlock.FeatureSupplier<F extends net.minecraft.world.level.levelgen.feature.Feature<FC>,FC extends net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration> Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface net.minecraft.world.level.block.BonemealableBlock
net.minecraft.world.level.block.BonemealableBlock.Type -
Field Summary
Fields inherited from class net.minecraft.world.level.block.SaplingBlock
AABB_OFFSET, CODEC, STAGE, treeGrowerFields inherited from class net.minecraft.world.level.block.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_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface org.betterx.bclib.behaviours.interfaces.BehaviourPlantLike
TAB_PREDICATEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionPottableSaplings(int light, org.betterx.bclib.blocks.FeatureSaplingBlock.FeatureSupplier<F, FC> featureSupplier) PottableSaplings(org.betterx.bclib.blocks.FeatureSaplingBlock.FeatureSupplier<F, FC> featureSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlantOn(net.minecraft.world.level.block.Block block) protected booleanmayPlaceOn(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockGetter, net.minecraft.core.BlockPos blockPos) Methods inherited from class org.betterx.bclib.blocks.FeatureSaplingBlock
advanceTree, doGrowFeature, getBlockModel, getItemModel, getRenderLayer, getShape, growFeature, isBonemealSuccess, randomTick, tick, updateShapeMethods inherited from class net.minecraft.world.level.block.SaplingBlock
codec, createBlockStateDefinition, isValidBonemealTarget, performBonemealMethods inherited from class net.minecraft.world.level.block.BushBlock
canSurvive, isPathfindable, propagatesSkylightDownMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, properties, propertiesCodec, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.betterx.bclib.behaviours.interfaces.BehaviourCompostable
compostingChanceMethods inherited from interface net.minecraft.world.level.block.BonemealableBlock
getParticlePos, getTypeMethods inherited from interface org.betterx.bclib.api.v3.datagen.DropSelfLootProvider
registerBlockLootMethods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock
getAppearanceMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface paulevs.edenring.interfaces.PottedPlant
canBePotted, getPottedStateMethods inherited from interface org.betterx.bclib.interfaces.RuntimeBlockModelProvider
getModelVariant, registerBlockModelMethods inherited from interface org.betterx.bclib.interfaces.SurvivesOn
isSurvivable
-
Constructor Details
-
PottableSaplings
-
PottableSaplings
-
-
Method Details
-
canPlantOn
public boolean canPlantOn(net.minecraft.world.level.block.Block block) - Specified by:
canPlantOnin interfacePottedPlant
-
mayPlaceOn
protected boolean mayPlaceOn(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockGetter, net.minecraft.core.BlockPos blockPos) - Overrides:
mayPlaceOnin classnet.minecraft.world.level.block.BushBlock
-