Class AirIntakeBlockMixin

java.lang.Object
com.lightning.northstar.mixin.compat.tfmg.AirIntakeBlockMixin
All Implemented Interfaces:
OxygenConsumer, SealableBlock

@ParametersAreNonnullByDefault public class AirIntakeBlockMixin extends Object implements SealableBlock, OxygenConsumer
  • Field Summary

    Fields inherited from interface com.lightning.northstar.world.oxygen.OxygenConsumer

    REGISTRY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    northstar$getOxygenConsumption(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, float base)
    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.
    boolean
    northstar$isFaceSealed(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, boolean source, SealingMode mode)
     
    boolean
    northstar$isGogglesOnly(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
    Tests if this consumer should be displayed on goggles but not actually affect oxygen sealers.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.lightning.northstar.world.oxygen.OxygenConsumer

    northstar$isOxygenConsumptionDynamic
  • Constructor Details

    • AirIntakeBlockMixin

      public AirIntakeBlockMixin()
  • Method Details

    • northstar$isFaceSealed

      public boolean northstar$isFaceSealed(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, boolean source, SealingMode mode)
      Specified by:
      northstar$isFaceSealed in interface SealableBlock
    • northstar$isGogglesOnly

      public boolean northstar$isGogglesOnly(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
      Description copied from interface: OxygenConsumer
      Tests if this consumer should be displayed on goggles but not actually affect oxygen sealers.
      Specified by:
      northstar$isGogglesOnly in interface OxygenConsumer
    • 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