Package net.minecraft.world.level.block
Interface ChangeOverTimeBlock<T extends Enum<T>>
- All Known Subinterfaces:
WeatheringCopper
- All Known Implementing Classes:
WeatheringCopperBulbBlock
,WeatheringCopperDoorBlock
,WeatheringCopperFullBlock
,WeatheringCopperGrateBlock
,WeatheringCopperSlabBlock
,WeatheringCopperStairBlock
,WeatheringCopperTrapDoorBlock
public interface ChangeOverTimeBlock<T extends Enum<T>>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
changeOverTime
(BlockState p_309154_, ServerLevel p_309115_, BlockPos p_308999_, RandomSource p_308868_) getAge()
float
getNext
(BlockState p_153040_) default Optional<BlockState>
getNextState
(BlockState p_309150_, ServerLevel p_309039_, BlockPos p_309042_, RandomSource p_308890_)
-
Field Details
-
SCAN_DISTANCE
static final int SCAN_DISTANCE- See Also:
-
-
Method Details
-
getNext
-
getChanceModifier
float getChanceModifier() -
changeOverTime
default void changeOverTime(BlockState p_309154_, ServerLevel p_309115_, BlockPos p_308999_, RandomSource p_308868_) -
getAge
T getAge() -
getNextState
default Optional<BlockState> getNextState(BlockState p_309150_, ServerLevel p_309039_, BlockPos p_309042_, RandomSource p_308890_)
-