Class ShelfFungiBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HorizontalDirectionalBlock
net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock
net.frozenblock.wilderwild.block.ShelfFungiBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.BonemealableBlock, net.minecraft.world.level.block.BucketPickup, net.minecraft.world.level.block.LiquidBlockContainer, net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.ItemLike

public class ShelfFungiBlock extends net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock implements net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.block.BonemealableBlock
  • Nested Class Summary

    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
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.state.properties.IntegerProperty
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    static final com.mojang.serialization.MapCodec<ShelfFungiBlock>
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    static final int
     
    static final int
     
    static final int
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    static final net.minecraft.world.level.block.state.properties.IntegerProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     

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

    FACE

    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, 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_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPS

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

    descriptionId, 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
    ShelfFungiBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canBeReplaced(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.item.context.BlockPlaceContext context)
     
    protected @NotNull com.mojang.serialization.MapCodec<? extends ShelfFungiBlock>
     
    protected void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> builder)
     
    void
    destroy(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    static @NotNull net.minecraft.world.level.block.state.properties.AttachFace
    getFace(@NotNull net.minecraft.core.Direction direction)
     
    @NotNull net.minecraft.world.level.material.FluidState
    getFluidState(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context)
     
    @Nullable net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext context)
     
    boolean
    isBonemealSuccess(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.util.RandomSource random, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    isMaxAge(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    protected boolean
    isRandomlyTicking(net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    isValidBonemealTarget(@NotNull net.minecraft.world.level.LevelReader level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    onShear(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.entity.Entity entity)
     
    void
    performBonemeal(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.util.RandomSource random, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
    playerDestroy(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    randomTick(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random)
     
    protected @NotNull net.minecraft.world.level.block.state.BlockState
    updateShape(@NotNull net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelReader levelReader, net.minecraft.world.level.ScheduledTickAccess scheduledTickAccess, net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.core.BlockPos neighborPos, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.util.RandomSource randomSource)
     
    @NotNull net.minecraft.world.InteractionResult
    useItemOn(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand, @NotNull net.minecraft.world.phys.BlockHitResult hit)
     

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

    canAttach, canSurvive, getConnectedDirection

    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, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf

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

    attack, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isPathfindable, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, 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.BonemealableBlock

    getParticlePos, getType

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

    isEnabled

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

    canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
  • Field Details

    • GROWTH_BRIGHTNESS_OFFSET

      public static final int GROWTH_BRIGHTNESS_OFFSET
      See Also:
    • MAX_STAGE

      public static final int MAX_STAGE
      See Also:
    • MAX_AGE

      public static final int MAX_AGE
      See Also:
    • AGE

      public static final net.minecraft.world.level.block.state.properties.IntegerProperty AGE
    • STAGE

      public static final net.minecraft.world.level.block.state.properties.IntegerProperty STAGE
    • WATERLOGGED

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED
    • CODEC

      public static final com.mojang.serialization.MapCodec<ShelfFungiBlock> CODEC
    • NORTH_WALL_SHAPE

      protected static final net.minecraft.world.phys.shapes.VoxelShape NORTH_WALL_SHAPE
    • SOUTH_WALL_SHAPE

      protected static final net.minecraft.world.phys.shapes.VoxelShape SOUTH_WALL_SHAPE
    • WEST_WALL_SHAPE

      protected static final net.minecraft.world.phys.shapes.VoxelShape WEST_WALL_SHAPE
    • EAST_WALL_SHAPE

      protected static final net.minecraft.world.phys.shapes.VoxelShape EAST_WALL_SHAPE
    • FLOOR_SHAPE

      protected static final net.minecraft.world.phys.shapes.VoxelShape FLOOR_SHAPE
    • CEILING_SHAPE

      protected static final net.minecraft.world.phys.shapes.VoxelShape CEILING_SHAPE
  • Constructor Details

    • ShelfFungiBlock

      public ShelfFungiBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
  • Method Details

    • isRandomlyTicking

      protected boolean isRandomlyTicking(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      isRandomlyTicking in class net.minecraft.world.level.block.state.BlockBehaviour
    • getFace

      @NotNull public static @NotNull net.minecraft.world.level.block.state.properties.AttachFace getFace(@NotNull @NotNull net.minecraft.core.Direction direction)
    • codec

      @NotNull protected @NotNull com.mojang.serialization.MapCodec<? extends ShelfFungiBlock> codec()
      Specified by:
      codec in class net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock
    • useItemOn

      @NotNull public @NotNull net.minecraft.world.InteractionResult useItemOn(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand, @NotNull @NotNull net.minecraft.world.phys.BlockHitResult hit)
      Overrides:
      useItemOn in class net.minecraft.world.level.block.state.BlockBehaviour
    • onShear

      public static boolean onShear(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.entity.Entity entity)
    • createBlockStateDefinition

      protected void createBlockStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> builder)
      Overrides:
      createBlockStateDefinition in class net.minecraft.world.level.block.Block
    • canBeReplaced

      public boolean canBeReplaced(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      canBeReplaced in class net.minecraft.world.level.block.state.BlockBehaviour
    • getStateForPlacement

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock
    • updateShape

      @NotNull protected @NotNull net.minecraft.world.level.block.state.BlockState updateShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelReader levelReader, net.minecraft.world.level.ScheduledTickAccess scheduledTickAccess, net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.core.BlockPos neighborPos, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.util.RandomSource randomSource)
      Overrides:
      updateShape in class net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock
    • getFluidState

      @NotNull public @NotNull net.minecraft.world.level.material.FluidState getFluidState(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getFluidState in class net.minecraft.world.level.block.state.BlockBehaviour
    • getShape

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

      public boolean isMaxAge(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
    • randomTick

      public void randomTick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random)
      Overrides:
      randomTick in class net.minecraft.world.level.block.state.BlockBehaviour
    • isValidBonemealTarget

      public boolean isValidBonemealTarget(@NotNull @NotNull net.minecraft.world.level.LevelReader level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      isValidBonemealTarget in interface net.minecraft.world.level.block.BonemealableBlock
    • isBonemealSuccess

      public boolean isBonemealSuccess(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.util.RandomSource random, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      isBonemealSuccess in interface net.minecraft.world.level.block.BonemealableBlock
    • performBonemeal

      public void performBonemeal(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.util.RandomSource random, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      performBonemeal in interface net.minecraft.world.level.block.BonemealableBlock
    • destroy

      public void destroy(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      destroy in class net.minecraft.world.level.block.Block
    • playerDestroy

      public void playerDestroy(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      playerDestroy in class net.minecraft.world.level.block.Block