Package net.minecraft.world.level.block
Interface SculkBehaviour
- All Known Implementing Classes:
SculkBlock,SculkVeinBlock
public interface SculkBehaviour
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanattemptSpreadVein(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Collection<Direction> pDirections, boolean pMarkForPostprocessing) intattemptUseCharge(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) default booleandefault booleandepositCharge(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) default bytedefault voidonDischarged(LevelAccessor pLevel, BlockState pState, BlockPos pPos, RandomSource pRandom) default intupdateDecayDelay(int pCurrentDecayDelay)
-
Field Details
-
DEFAULT
-
-
Method Details
-
getSculkSpreadDelay
default byte getSculkSpreadDelay() -
onDischarged
default void onDischarged(LevelAccessor pLevel, BlockState pState, BlockPos pPos, RandomSource pRandom) -
depositCharge
-
attemptSpreadVein
default boolean attemptSpreadVein(LevelAccessor pLevel, BlockPos pPos, BlockState pState, @Nullable Collection<Direction> pDirections, boolean pMarkForPostprocessing) -
canChangeBlockStateOnSpread
default boolean canChangeBlockStateOnSpread() -
updateDecayDelay
default int updateDecayDelay(int pCurrentDecayDelay) -
attemptUseCharge
int attemptUseCharge(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks)
-