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 boolean
attemptSpreadVein
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Collection<Direction> pDirections, boolean pMarkForPostprocessing) int
attemptUseCharge
(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) default boolean
default boolean
depositCharge
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) default byte
default void
onDischarged
(LevelAccessor pLevel, BlockState pState, BlockPos pPos, RandomSource pRandom) default int
updateDecayDelay
(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)
-