Class ChunkRadiationHandlerSimple

java.lang.Object
com.hbm_m.radiation.ChunkRadiationHandler
com.hbm_m.radiation.ChunkRadiationHandlerSimple

public class ChunkRadiationHandlerSimple extends ChunkRadiationHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    clearSystem(net.minecraft.world.level.Level level)
    Очищает систему радиации для указанного мира
    void
    decrementRad(net.minecraft.world.level.Level level, int x, int y, int z, float rad)
    Уменьшает уровень радиации в указанной позиции
    getChunkRadiationCap(net.minecraft.world.level.chunk.LevelChunk chunk)
     
    float
    getRadiation(net.minecraft.world.level.Level level, int x, int y, int z)
    Получает уровень радиации в указанной позиции
    void
    Эффекты радиации на мир (трава → мёртвая трава, листья → waste leaves и т.д.).
    void
    incrementBlockRadiation(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, float diff)
     
    void
    incrementRad(net.minecraft.world.level.Level level, int x, int y, int z, float rad)
    Увеличивает уровень радиации в указанной позиции
    void
    onBlockUpdated(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    void
    recalculateChunkRadiation(net.minecraft.world.level.chunk.LevelChunk chunk)
     
    void
    receiveChunkLoad(net.minecraft.world.level.chunk.LevelChunk chunk)
     
    void
    receiveChunkUnload(net.minecraftforge.event.level.ChunkEvent.Unload event)
     
    void
    receiveWorldLoad(net.minecraftforge.event.level.LevelEvent.Load event)
    Обработчики событий
    void
    receiveWorldUnload(net.minecraftforge.event.level.LevelEvent.Unload event)
     
    void
    setRadiation(net.minecraft.world.level.Level level, int x, int y, int z, float rad)
    Устанавливает уровень радиации в указанной позиции
    void
    Обновляет систему радиации для всех миров

    Methods inherited from class com.hbm_m.radiation.ChunkRadiationHandler

    receiveChunkLoad, receiveChunkSave, receiveWorldTick

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChunkRadiationHandlerSimple

      public ChunkRadiationHandlerSimple()
  • Method Details

    • getChunkRadiationCap

      public static Optional<IChunkRadiation> getChunkRadiationCap(net.minecraft.world.level.chunk.LevelChunk chunk)
    • onBlockUpdated

      public void onBlockUpdated(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Specified by:
      onBlockUpdated in class ChunkRadiationHandler
    • updateSystem

      public void updateSystem()
      Description copied from class: ChunkRadiationHandler
      Обновляет систему радиации для всех миров
      Specified by:
      updateSystem in class ChunkRadiationHandler
    • recalculateChunkRadiation

      public void recalculateChunkRadiation(net.minecraft.world.level.chunk.LevelChunk chunk)
      Specified by:
      recalculateChunkRadiation in class ChunkRadiationHandler
    • receiveChunkLoad

      public void receiveChunkLoad(net.minecraft.world.level.chunk.LevelChunk chunk)
      Specified by:
      receiveChunkLoad in class ChunkRadiationHandler
    • receiveChunkUnload

      public void receiveChunkUnload(net.minecraftforge.event.level.ChunkEvent.Unload event)
      Overrides:
      receiveChunkUnload in class ChunkRadiationHandler
    • getRadiation

      public float getRadiation(net.minecraft.world.level.Level level, int x, int y, int z)
      Description copied from class: ChunkRadiationHandler
      Получает уровень радиации в указанной позиции
      Specified by:
      getRadiation in class ChunkRadiationHandler
      Parameters:
      level - мир
      x - координата X
      y - координата Y
      z - координата Z
      Returns:
      уровень радиации в рад/с
    • setRadiation

      public void setRadiation(net.minecraft.world.level.Level level, int x, int y, int z, float rad)
      Description copied from class: ChunkRadiationHandler
      Устанавливает уровень радиации в указанной позиции
      Specified by:
      setRadiation in class ChunkRadiationHandler
      Parameters:
      level - мир
      x - координата X
      y - координата Y
      z - координата Z
      rad - уровень радиации в рад/с
    • incrementRad

      public void incrementRad(net.minecraft.world.level.Level level, int x, int y, int z, float rad)
      Description copied from class: ChunkRadiationHandler
      Увеличивает уровень радиации в указанной позиции
      Specified by:
      incrementRad in class ChunkRadiationHandler
      Parameters:
      level - мир
      x - координата X
      y - координата Y
      z - координата Z
      rad - величина увеличения радиации в рад/с
    • decrementRad

      public void decrementRad(net.minecraft.world.level.Level level, int x, int y, int z, float rad)
      Description copied from class: ChunkRadiationHandler
      Уменьшает уровень радиации в указанной позиции
      Specified by:
      decrementRad in class ChunkRadiationHandler
      Parameters:
      level - мир
      x - координата X
      y - координата Y
      z - координата Z
      rad - величина уменьшения радиации в рад/с
    • incrementBlockRadiation

      public void incrementBlockRadiation(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, float diff)
      Specified by:
      incrementBlockRadiation in class ChunkRadiationHandler
    • clearPlayerDebugCache

      public void clearPlayerDebugCache(UUID playerUUID)
    • handleWorldDestruction

      public void handleWorldDestruction()
      Эффекты радиации на мир (трава → мёртвая трава, листья → waste leaves и т.д.). Порт 1:1 с ChunkRadiationHandlerSimple#handleWorldDestruction() (1.7.10): каждый серверный тик, 5 случайных чанков, 10 проходов, порог 10 RAD (hardcoded, как в 1.7.10).
      Overrides:
      handleWorldDestruction in class ChunkRadiationHandler
    • clearSystem

      public void clearSystem(net.minecraft.world.level.Level level)
      Description copied from class: ChunkRadiationHandler
      Очищает систему радиации для указанного мира
      Specified by:
      clearSystem in class ChunkRadiationHandler
      Parameters:
      level - мир
    • receiveWorldLoad

      public void receiveWorldLoad(net.minecraftforge.event.level.LevelEvent.Load event)
      Description copied from class: ChunkRadiationHandler
      Обработчики событий
      Overrides:
      receiveWorldLoad in class ChunkRadiationHandler
    • receiveWorldUnload

      public void receiveWorldUnload(net.minecraftforge.event.level.LevelEvent.Unload event)
      Overrides:
      receiveWorldUnload in class ChunkRadiationHandler