Class ProgressiveBlockSealer

java.lang.Object
com.lightning.northstar.world.sealer.ProgressiveBlockSealer
Direct Known Subclasses:
OxygenTrackingSealer

@ParametersAreNonnullByDefault public class ProgressiveBlockSealer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCooldownTooltip(List<net.minecraft.network.chat.Component> tooltip, int maximumSealed)
     
    void
    addCooldownTooltip(List<net.minecraft.network.chat.Component> tooltip, int cooldown, int maximumSealed)
     
    void
    addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, int maximumSealed, boolean isPlayerSneaking)
     
    boolean
    beginSeal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos origin, @Nullable net.minecraft.core.Direction originDirection)
     
    int
     
    int
     
    it.unimi.dsi.fastutil.longs.LongSet
     
     
    it.unimi.dsi.fastutil.longs.LongList
     
     
    boolean
     
    protected boolean
    isAirOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, net.minecraft.core.Direction direction)
     
    static boolean
    isAirOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, net.minecraft.core.Direction direction, SealingMode mode)
     
    static boolean
    isFaceOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, boolean source, SealingMode mode)
     
    boolean
     
    protected void
    onBlockAdded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
     
    protected void
    onSealComplete(int maximumSealed, long lastChecked)
     
    boolean
    processSeal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos origin, @Nullable net.minecraft.core.Direction originDirection, int maximumSealed)
     
    void
    renderLeakPath(net.minecraft.world.level.Level level)
     
    void
    renderLeakPath(net.minecraft.world.level.Level level, @Nullable com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption)
     
    boolean
    updateSeal(net.minecraft.world.level.Level level, int maximumSealed)
     
    boolean
    updateSeal(net.minecraft.world.level.Level level, int maximumSealed, int maximumChecked)
     

    Methods inherited from class java.lang.Object

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

    • ProgressiveBlockSealer

      public ProgressiveBlockSealer(SealingMode mode)
  • Method Details

    • processSeal

      public boolean processSeal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos origin, @Nullable @Nullable net.minecraft.core.Direction originDirection, int maximumSealed)
      Returns:
      if the sealing process is complete and the seal has been updated
    • beginSeal

      public boolean beginSeal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos origin, @Nullable @Nullable net.minecraft.core.Direction originDirection)
      Returns:
      if the sealing process has started
    • updateSeal

      public boolean updateSeal(net.minecraft.world.level.Level level, int maximumSealed)
    • updateSeal

      public boolean updateSeal(net.minecraft.world.level.Level level, int maximumSealed, int maximumChecked)
      Returns:
      true if the seal is complete or false if it is still in progress
    • onSealComplete

      protected void onSealComplete(int maximumSealed, long lastChecked)
    • onBlockAdded

      protected void onBlockAdded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
    • isAirOccluded

      protected boolean isAirOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, net.minecraft.core.Direction direction)
    • isAirOccluded

      public static boolean isAirOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, net.minecraft.core.Direction direction, SealingMode mode)
    • isFaceOccluded

      public static boolean isFaceOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, boolean source, SealingMode mode)
    • renderLeakPath

      public void renderLeakPath(net.minecraft.world.level.Level level)
    • renderLeakPath

      public void renderLeakPath(net.minecraft.world.level.Level level, @Nullable @Nullable com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption)
    • addToGoggleTooltip

      public void addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, int maximumSealed, boolean isPlayerSneaking)
    • addCooldownTooltip

      public void addCooldownTooltip(List<net.minecraft.network.chat.Component> tooltip, int maximumSealed)
    • addCooldownTooltip

      public void addCooldownTooltip(List<net.minecraft.network.chat.Component> tooltip, int cooldown, int maximumSealed)
    • isSealInProgress

      public boolean isSealInProgress()
    • getSealedBounds

      public MutableAABB getSealedBounds()
    • getSealedBlocks

      public it.unimi.dsi.fastutil.longs.LongSet getSealedBlocks()
    • getUpdatedBlocks

      public it.unimi.dsi.fastutil.longs.LongList getUpdatedBlocks()
    • hasLeak

      public boolean hasLeak()
    • getVisualizer

      public SealerDebugVisualizer getVisualizer()
    • getSealedBlockCount

      public int getSealedBlockCount()
    • getCheckCooldown

      public int getCheckCooldown()