Class ProgressiveBlockSealer
java.lang.Object
com.lightning.northstar.world.sealer.ProgressiveBlockSealer
- Direct Known Subclasses:
OxygenTrackingSealer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCooldownTooltip(List<net.minecraft.network.chat.Component> tooltip, int maximumSealed) voidaddCooldownTooltip(List<net.minecraft.network.chat.Component> tooltip, int cooldown, int maximumSealed) voidaddToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, int maximumSealed, boolean isPlayerSneaking) booleanbeginSeal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos origin, @Nullable net.minecraft.core.Direction originDirection) intintit.unimi.dsi.fastutil.longs.LongSetit.unimi.dsi.fastutil.longs.LongListbooleanhasLeak()protected booleanisAirOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, net.minecraft.core.Direction direction) static booleanisAirOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos from, net.minecraft.core.BlockPos to, net.minecraft.core.Direction direction, SealingMode mode) static booleanisFaceOccluded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, boolean source, SealingMode mode) booleanprotected voidonBlockAdded(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) protected voidonSealComplete(int maximumSealed, long lastChecked) booleanprocessSeal(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos origin, @Nullable net.minecraft.core.Direction originDirection, int maximumSealed) voidrenderLeakPath(net.minecraft.world.level.Level level) voidrenderLeakPath(net.minecraft.world.level.Level level, @Nullable com.simibubi.create.content.contraptions.AbstractContraptionEntity contraption) booleanupdateSeal(net.minecraft.world.level.Level level, int maximumSealed) booleanupdateSeal(net.minecraft.world.level.Level level, int maximumSealed, int maximumChecked)
-
Constructor Details
-
ProgressiveBlockSealer
-
-
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
-
getSealedBlocks
public it.unimi.dsi.fastutil.longs.LongSet getSealedBlocks() -
getUpdatedBlocks
public it.unimi.dsi.fastutil.longs.LongList getUpdatedBlocks() -
hasLeak
public boolean hasLeak() -
getVisualizer
-
getSealedBlockCount
public int getSealedBlockCount() -
getCheckCooldown
public int getCheckCooldown()
-