Class AbstractFurnaceBlockMixin
java.lang.Object
com.lightning.northstar.mixin.oxygen.AbstractFurnaceBlockMixin
- All Implemented Interfaces:
OxygenConsumer
@ParametersAreNonnullByDefault
public class AbstractFurnaceBlockMixin
extends Object
implements OxygenConsumer
-
Field Summary
Fields inherited from interface com.lightning.northstar.world.oxygen.OxygenConsumer
REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatnorthstar$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.booleannorthstar$isOxygenConsumptionDynamic(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) 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 withOxygenConsumer.northstar$getOxygenConsumption(BlockGetter, BlockPos, float)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lightning.northstar.world.oxygen.OxygenConsumer
northstar$isGogglesOnly
-
Constructor Details
-
AbstractFurnaceBlockMixin
public AbstractFurnaceBlockMixin()
-
-
Method Details
-
northstar$isOxygenConsumptionDynamic
public boolean northstar$isOxygenConsumptionDynamic(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) Description copied from interface:OxygenConsumerTests if the oxygen consumption is dynamic and should be checked each tick, if false then the consumption is only checked once on seal updates withOxygenConsumer.northstar$getOxygenConsumption(BlockGetter, BlockPos, float)- Specified by:
northstar$isOxygenConsumptionDynamicin interfaceOxygenConsumer- 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:OxygenConsumerCalculates 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$getOxygenConsumptionin interfaceOxygenConsumer- Parameters:
level- the level of the blockpos- the position of the blockbase- the base oxygen consumption, in mB/t
-