接口 SculkBehaviour
- 所有已知实现类:
SculkBlock
,SculkVeinBlock
public interface SculkBehaviour
-
字段概要
字段 -
方法概要
修饰符和类型方法说明default 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 p_222044_) 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)
-
字段详细资料
-
DEFAULT
-
-
方法详细资料
-
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 p_222044_)
-