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_311790_, ServerLevel p_309416_, BlockPos p_310092_, RandomSource p_310572_) getAge()
float
getNext
(BlockState p_153040_) default Optional<BlockState>
getNextState
(BlockState p_311503_, ServerLevel p_311331_, BlockPos p_309459_, RandomSource p_312041_)
-
Field Details
-
SCAN_DISTANCE
static final int SCAN_DISTANCE- See Also:
-
-
Method Details
-
getNext
-
getChanceModifier
float getChanceModifier() -
changeOverTime
default void changeOverTime(BlockState p_311790_, ServerLevel p_309416_, BlockPos p_310092_, RandomSource p_310572_) -
getAge
T getAge() -
getNextState
default Optional<BlockState> getNextState(BlockState p_311503_, ServerLevel p_311331_, BlockPos p_309459_, RandomSource p_312041_)
-