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.BlockStatePairKey

    Nested 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.StatePredicate

    Nested 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, treeGrower

    Fields 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_DROPS

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER

    Fields inherited from interface org.betterx.bclib.behaviours.interfaces.BehaviourPlantLike

    TAB_PREDICATE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    PottableSaplings(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 Type
    Method
    Description
    boolean
    canPlantOn(net.minecraft.world.level.block.Block block)
     
    protected boolean
    mayPlaceOn(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, updateShape

    Methods inherited from class net.minecraft.world.level.block.SaplingBlock

    codec, createBlockStateDefinition, isValidBonemealTarget, performBonemeal

    Methods inherited from class net.minecraft.world.level.block.BushBlock

    canSurvive, isPathfindable, propagatesSkylightDown

    Methods 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, withPropertiesOf

    Methods 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, useWithoutItem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.betterx.bclib.behaviours.interfaces.BehaviourCompostable

    compostingChance

    Methods inherited from interface net.minecraft.world.level.block.BonemealableBlock

    getParticlePos, getType

    Methods inherited from interface org.betterx.bclib.api.v3.datagen.DropSelfLootProvider

    registerBlockLoot

    Methods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock

    getAppearance

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface paulevs.edenring.interfaces.PottedPlant

    canBePotted, getPottedState

    Methods inherited from interface org.betterx.bclib.interfaces.RuntimeBlockModelProvider

    getModelVariant, registerBlockModel

    Methods inherited from interface org.betterx.bclib.interfaces.SurvivesOn

    isSurvivable
  • Constructor Details

    • PottableSaplings

      public PottableSaplings(org.betterx.bclib.blocks.FeatureSaplingBlock.FeatureSupplier<F,FC> featureSupplier)
    • PottableSaplings

      public PottableSaplings(int light, org.betterx.bclib.blocks.FeatureSaplingBlock.FeatureSupplier<F,FC> featureSupplier)
  • Method Details

    • canPlantOn

      public boolean canPlantOn(net.minecraft.world.level.block.Block block)
      Specified by:
      canPlantOn in interface PottedPlant
    • mayPlaceOn

      protected boolean mayPlaceOn(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockGetter, net.minecraft.core.BlockPos blockPos)
      Overrides:
      mayPlaceOn in class net.minecraft.world.level.block.BushBlock