Class SpecialFlowerBlock

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.FlowerBlock
vazkii.botania.common.block.SpecialFlowerBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.block.SuspiciousEffectHolder, net.minecraft.world.level.ItemLike

public class SpecialFlowerBlock extends net.minecraft.world.level.block.FlowerBlock implements net.minecraft.world.level.block.EntityBlock
  • Nested Class Summary

    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
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.FlowerBlock

    AABB_OFFSET, CODEC, EFFECTS_FIELD

    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 net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpecialFlowerBlock(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> stewEffect, int stewDuration, net.minecraft.world.level.block.state.BlockBehaviour.Properties props, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends SpecialFlowerBlockEntity>> blockEntityType)
     
    SpecialFlowerBlock(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> stewEffect, int stewDuration, net.minecraft.world.level.block.state.BlockBehaviour.Properties props, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends SpecialFlowerBlockEntity>> blockEntityType, boolean hasComparatorOutput)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    animateTick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand)
     
    int
    getAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter world, @NotNull net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext ctx)
     
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T>
    getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntityType<T> type)
     
    boolean
    hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState bs)
     
    protected boolean
    mayPlaceOn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos)
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
    onRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, boolean movedByPiston)
     
    static void
    redstoneParticlesIfPowered(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand)
     
    void
    setPlacedBy(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.item.ItemStack stack)
     
    boolean
    triggerEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int event, int param)
     

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

    codec, getSuspiciousEffects, makeEffectList

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

    canSurvive, isPathfindable, propagatesSkylightDown, updateShape

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

    appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, createBlockStateDefinition, 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, 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, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, tick, 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 net.minecraft.world.level.block.EntityBlock

    getListener

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

    isEnabled
  • Constructor Details

    • SpecialFlowerBlock

      public SpecialFlowerBlock(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> stewEffect, int stewDuration, net.minecraft.world.level.block.state.BlockBehaviour.Properties props, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends SpecialFlowerBlockEntity>> blockEntityType)
    • SpecialFlowerBlock

      public SpecialFlowerBlock(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> stewEffect, int stewDuration, net.minecraft.world.level.block.state.BlockBehaviour.Properties props, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends SpecialFlowerBlockEntity>> blockEntityType, boolean hasComparatorOutput)
  • Method Details

    • getShape

      @NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter world, @NotNull @NotNull net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext ctx)
      Overrides:
      getShape in class net.minecraft.world.level.block.FlowerBlock
    • mayPlaceOn

      protected boolean mayPlaceOn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos)
      Overrides:
      mayPlaceOn in class net.minecraft.world.level.block.BushBlock
    • triggerEvent

      public boolean triggerEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int event, int param)
      Overrides:
      triggerEvent in class net.minecraft.world.level.block.state.BlockBehaviour
    • newBlockEntity

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      newBlockEntity in interface net.minecraft.world.level.block.EntityBlock
    • getTicker

      @Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntityType<T> type)
      Specified by:
      getTicker in interface net.minecraft.world.level.block.EntityBlock
    • setPlacedBy

      public void setPlacedBy(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.item.ItemStack stack)
      Overrides:
      setPlacedBy in class net.minecraft.world.level.block.Block
    • onRemove

      public void onRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, boolean movedByPiston)
      Overrides:
      onRemove in class net.minecraft.world.level.block.state.BlockBehaviour
    • animateTick

      public void animateTick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand)
      Overrides:
      animateTick in class net.minecraft.world.level.block.Block
    • hasAnalogOutputSignal

      public boolean hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState bs)
      Overrides:
      hasAnalogOutputSignal in class net.minecraft.world.level.block.state.BlockBehaviour
    • getAnalogOutputSignal

      public int getAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Overrides:
      getAnalogOutputSignal in class net.minecraft.world.level.block.state.BlockBehaviour
    • redstoneParticlesIfPowered

      public static void redstoneParticlesIfPowered(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand)