Class ExhaustBlockMixin

java.lang.Object
com.lightning.northstar.mixin.compat.tfmg.ExhaustBlockMixin
All Implemented Interfaces:
OxygenConsumer

@ParametersAreNonnullByDefault public class ExhaustBlockMixin extends Object implements OxygenConsumer
  • Constructor Details

    • ExhaustBlockMixin

      public ExhaustBlockMixin()
  • Method Details

    • northstar$isOxygenConsumptionDynamic

      public boolean northstar$isOxygenConsumptionDynamic(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
      Description copied from interface: OxygenConsumer
      Tests if the oxygen consumption is dynamic and should be checked each tick, if false then the consumption is only checked once on seal updates with OxygenConsumer.northstar$getOxygenConsumption(BlockGetter, BlockPos, float)
      Specified by:
      northstar$isOxygenConsumptionDynamic in interface OxygenConsumer
      Returns:
      true if the block might change its oxygen consumption and needs to be checked each tick
    • northstar$getOxygenConsumption

      public float northstar$getOxygenConsumption(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, float base)
      Description copied from interface: OxygenConsumer
      Calculates the oxygen usage in mB/t Note for implementers: if dynamic, make sure that the block is what you expect as it might change in the world and seals don't update instantly.
      Specified by:
      northstar$getOxygenConsumption in interface OxygenConsumer
      Parameters:
      level - the level of the block
      pos - the position of the block
      base - the base oxygen consumption, in mB/t