Class OsseousSculkBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.frozenblock.wilderwild.block.OsseousSculkBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.SculkBehaviour, net.minecraft.world.level.ItemLike

public class OsseousSculkBlock extends net.minecraft.world.level.block.Block implements 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 net.minecraft.world.level.block.state.properties.DirectionProperty
     
    static final int
     
    static final double
     
    static final double
     
    static final net.minecraft.world.level.block.state.properties.IntegerProperty
     
    static final double
     
    static final double
     
    static final net.minecraft.world.level.block.state.properties.IntegerProperty
     

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

    Modifier and Type
    Method
    Description
    int
    attemptUseCharge(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 spreader, boolean shouldConvertBlocks)
     
    void
    convertToSculk(@NotNull net.minecraft.world.level.LevelAccessor 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 net.minecraft.core.Direction.Axis
    getAxis(@NotNull net.minecraft.util.RandomSource random)
     
    @Nullable net.minecraft.core.BlockPos
    getBottom(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos, int max)
     
    static net.minecraft.core.Direction
    getDir(net.minecraft.core.Direction.Axis axis, @NotNull net.minecraft.util.RandomSource random)
     
    @Nullable net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext)
     
    @Nullable net.minecraft.core.BlockPos
    getTop(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos, int max)
     
    static boolean
    isSafeToReplace(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    static void
    placeVeinsAround(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos)
     
    @NotNull net.minecraft.world.level.block.state.BlockState
    rotate(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.block.Rotation rotation)
     
    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 dropExperience)
     

    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, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, requiredFeatures, skipRendering, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusion

    Methods inherited from class java.lang.Object

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

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

    • GROWTH_CHANCE

      public static final int GROWTH_CHANCE
      See Also:
    • HANGING_TENDRIL_CHANCE

      public static final double HANGING_TENDRIL_CHANCE
      See Also:
    • HANGING_TENDRIL_WORLDGEN_CHANCE

      public static final double HANGING_TENDRIL_WORLDGEN_CHANCE
      See Also:
    • CATALYST_GROWTH_CHANCE

      public static final int CATALYST_GROWTH_CHANCE
      See Also:
    • SCULK_CONVERSION_HEIGHT_THRESHOLD

      public static final double SCULK_CONVERSION_HEIGHT_THRESHOLD
      See Also:
    • RIB_CAGE_CHANCE

      public static final double RIB_CAGE_CHANCE
      See Also:
    • FACING

      public static final net.minecraft.world.level.block.state.properties.DirectionProperty FACING
    • HEIGHT_LEFT

      public static final net.minecraft.world.level.block.state.properties.IntegerProperty HEIGHT_LEFT
    • TOTAL_HEIGHT

      public static final net.minecraft.world.level.block.state.properties.IntegerProperty TOTAL_HEIGHT
  • Constructor Details

    • OsseousSculkBlock

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

    • getDir

      public static net.minecraft.core.Direction getDir(@NotNull net.minecraft.core.Direction.Axis axis, @NotNull @NotNull net.minecraft.util.RandomSource random)
    • getAxis

      @NotNull public static net.minecraft.core.Direction.Axis getAxis(@NotNull @NotNull net.minecraft.util.RandomSource random)
    • isSafeToReplace

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

      public static void placeVeinsAround(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
    • getStateForPlacement

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.Block
    • 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 dropExperience)
      Overrides:
      spawnAfterBreak 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 spreader, boolean shouldConvertBlocks)
      Specified by:
      attemptUseCharge in interface net.minecraft.world.level.block.SculkBehaviour
    • convertToSculk

      public void convertToSculk(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
    • getTop

      @Nullable public @Nullable net.minecraft.core.BlockPos getTop(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos, int max)
    • getBottom

      @Nullable public @Nullable net.minecraft.core.BlockPos getBottom(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos, int max)
    • rotate

      @NotNull public @NotNull net.minecraft.world.level.block.state.BlockState rotate(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.world.level.block.Rotation rotation)
      Overrides:
      rotate in class net.minecraft.world.level.block.state.BlockBehaviour
    • 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