Package net.frozenblock.wilderwild.block
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.BlockStatePairKeyNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final net.minecraft.world.level.block.state.properties.DirectionPropertystatic final intstatic final doublestatic final doublestatic final net.minecraft.world.level.block.state.properties.IntegerPropertystatic final doublestatic final doublestatic final net.minecraft.world.level.block.state.properties.IntegerPropertyFields 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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIESFields inherited from interface net.minecraft.world.level.block.SculkBehaviour
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionOsseousSculkBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings) -
Method Summary
Modifier and TypeMethodDescriptionintattemptUseCharge(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) voidconvertToSculk(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) protected voidcreateBlockStateDefinition(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.AxisgetAxis(@NotNull net.minecraft.util.RandomSource random) @Nullable net.minecraft.core.BlockPosgetBottom(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos, int max) static net.minecraft.core.DirectiongetDir(net.minecraft.core.Direction.Axis axis, @NotNull net.minecraft.util.RandomSource random) @Nullable net.minecraft.world.level.block.state.BlockStategetStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext) @Nullable net.minecraft.core.BlockPosgetTop(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos, int max) static booleanisSafeToReplace(@NotNull net.minecraft.world.level.block.state.BlockState state) static voidplaceVeinsAround(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) @NotNull net.minecraft.world.level.block.state.BlockStaterotate(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.block.Rotation rotation) voidspawnAfterBreak(@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, withPropertiesOfMethods 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, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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:
getStateForPlacementin classnet.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:
spawnAfterBreakin classnet.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:
attemptUseChargein interfacenet.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:
rotatein classnet.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:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-