Class HangingTendrilBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.frozenblock.wilderwild.block.HangingTendrilBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.BucketPickup, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.block.LiquidBlockContainer, net.minecraft.world.level.block.SculkBehaviour, net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.ItemLike

public class HangingTendrilBlock extends net.minecraft.world.level.block.BaseEntityBlock implements net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.block.SculkBehaviour
  • 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
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    static final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.world.level.block.state.properties.SculkSensorPhase>
     
    static final net.minecraft.world.level.block.state.properties.IntegerProperty
     
    static final int
     
    static final int
     
    static final int
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     

    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

    Fields inherited from interface net.minecraft.world.level.block.SculkBehaviour

    DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    HangingTendrilBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    activate(@Nullable net.minecraft.world.entity.Entity entity, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.gameevent.GameEvent gameEvent, int power, int frequency)
     
    int
    attemptUseCharge(@NotNull net.minecraft.world.level.block.SculkSpreader.ChargeCursor cursor, @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos catalystPos, @NotNull net.minecraft.util.RandomSource random, @NotNull net.minecraft.world.level.block.SculkSpreader spreadManager, boolean shouldConvertToBlock)
     
    static boolean
    canActivate(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    canSurvive(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.LevelReader level, @NotNull net.minecraft.core.BlockPos pos)
     
    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)
     
    static void
    deactivate(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.util.RandomSource random)
     
    int
    getAnalogOutputSignal(@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.level.material.FluidState
    getFluidState(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getOcclusionShape(@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.level.block.RenderShape
    getRenderShape(@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)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext ctx)
     
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T>
    getTicker(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.block.entity.BlockEntityType<T> type)
     
    boolean
    hasAnalogOutputSignal(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.pathfinder.PathComputationType type)
     
    net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
    onPlace(@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.level.block.state.BlockState oldState, boolean movedByPiston)
     
    void
    onRemove(@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.level.block.state.BlockState newState, boolean movedByPiston)
     
    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)
     
    static boolean
    shouldHavePogLighting(net.minecraft.world.level.block.state.BlockState state)
     
    void
    spawnAfterBreak(@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.world.item.ItemStack stack, boolean bl)
     
    void
    tick(@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)
     
    static void
    updateNeighbours(@NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    @NotNull net.minecraft.world.level.block.state.BlockState
    updateShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos currentPos, @NotNull net.minecraft.core.BlockPos neighborPos)
     
    @NotNull net.minecraft.world.InteractionResult
    use(@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)
     
    boolean
    useShapeForLightOcclusion(@NotNull net.minecraft.world.level.block.state.BlockState state)
     

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

    createTickerHelper, getMenuProvider, triggerEvent

    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, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, 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, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getSeed, getShadeBrightness, getSignal, getVisualShape, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, mirror, neighborChanged, onProjectileHit, requiredFeatures, rotate, skipRendering, updateIndirectNeighbourShapes

    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

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

    attemptSpreadVein, canChangeBlockStateOnSpread, depositCharge, getSculkSpreadDelay, onDischarged, updateDecayDelay

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

    canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
  • Field Details

    • ACTIVE_TICKS

      public static final int ACTIVE_TICKS
      See Also:
    • TWITCH_MIN_TICKS

      public static final int TWITCH_MIN_TICKS
      See Also:
    • TWITCH_MAX_TICKS

      public static final int TWITCH_MAX_TICKS
      See Also:
    • MAX_STORED_XP

      public static final int MAX_STORED_XP
      See Also:
    • RING_OUT_TICKS

      public static final int RING_OUT_TICKS
      See Also:
    • PHASE

      public static final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.world.level.block.state.properties.SculkSensorPhase> PHASE
    • POWER

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

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

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty TWITCHING
    • WRINGING_OUT

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty WRINGING_OUT
    • OUTLINE_SHAPE

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

    • HangingTendrilBlock

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

    • deactivate

      public static void deactivate(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.util.RandomSource random)
    • shouldHavePogLighting

      public static boolean shouldHavePogLighting(net.minecraft.world.level.block.state.BlockState state)
    • canActivate

      public static boolean canActivate(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
    • canSurvive

      public boolean canSurvive(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.LevelReader level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
      Overrides:
      canSurvive in class net.minecraft.world.level.block.state.BlockBehaviour
    • getStateForPlacement

      public net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext ctx)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.Block
    • 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
    • updateShape

      @NotNull public @NotNull net.minecraft.world.level.block.state.BlockState updateShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos currentPos, @NotNull @NotNull net.minecraft.core.BlockPos neighborPos)
      Overrides:
      updateShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • 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
    • tick

      public void tick(@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:
      tick in class net.minecraft.world.level.block.state.BlockBehaviour
    • onPlace

      public void onPlace(@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.level.block.state.BlockState oldState, boolean movedByPiston)
      Overrides:
      onPlace in class net.minecraft.world.level.block.state.BlockBehaviour
    • onRemove

      public void onRemove(@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.level.block.state.BlockState newState, boolean movedByPiston)
      Overrides:
      onRemove in class net.minecraft.world.level.block.state.BlockBehaviour
    • updateNeighbours

      public static void updateNeighbours(@NotNull @NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
    • newBlockEntity

      public 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(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.block.entity.BlockEntityType<T> type)
      Specified by:
      getTicker in interface net.minecraft.world.level.block.EntityBlock
    • getRenderShape

      @NotNull public @NotNull net.minecraft.world.level.block.RenderShape getRenderShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getRenderShape in class net.minecraft.world.level.block.BaseEntityBlock
    • getOcclusionShape

      @NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getOcclusionShape(@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)
      Overrides:
      getOcclusionShape 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
    • activate

      public void activate(@Nullable @Nullable net.minecraft.world.entity.Entity entity, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.gameevent.GameEvent gameEvent, int power, int frequency)
    • 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
    • hasAnalogOutputSignal

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

      public int getAnalogOutputSignal(@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)
      Overrides:
      getAnalogOutputSignal in class net.minecraft.world.level.block.state.BlockBehaviour
    • isPathfindable

      public boolean isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.pathfinder.PathComputationType type)
      Overrides:
      isPathfindable in class net.minecraft.world.level.block.state.BlockBehaviour
    • useShapeForLightOcclusion

      public boolean useShapeForLightOcclusion(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      useShapeForLightOcclusion in class net.minecraft.world.level.block.state.BlockBehaviour
    • spawnAfterBreak

      public void spawnAfterBreak(@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.world.item.ItemStack stack, boolean bl)
      Overrides:
      spawnAfterBreak in class net.minecraft.world.level.block.state.BlockBehaviour
    • use

      @NotNull public @NotNull net.minecraft.world.InteractionResult use(@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:
      use in class net.minecraft.world.level.block.state.BlockBehaviour
    • attemptUseCharge

      public int attemptUseCharge(@NotNull net.minecraft.world.level.block.SculkSpreader.ChargeCursor cursor, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos catalystPos, @NotNull @NotNull net.minecraft.util.RandomSource random, @NotNull @NotNull net.minecraft.world.level.block.SculkSpreader spreadManager, boolean shouldConvertToBlock)
      Specified by:
      attemptUseCharge in interface net.minecraft.world.level.block.SculkBehaviour