Class PurposelyBrokenEnv

java.lang.Object
etithespirit.orimod.api.environment.EnvironmentalAffinity
etithespirit.orimod.apiimpl.debug.PurposelyBrokenEnv

public class PurposelyBrokenEnv extends EnvironmentalAffinity
  • Constructor Details

    • PurposelyBrokenEnv

      public PurposelyBrokenEnv(net.minecraft.resources.ResourceLocation biome, NumberRange efficiencyPercentage)
      Create a new affinity object for the given biome using the given flux and static efficiency percentage.
      Parameters:
      biome - The biome that this exists for.
      efficiencyPercentage - The efficiency boost (or reduction) for all devices as a range of possible values.
  • Method Details

    • onPlayerTick

      public void onPlayerTick(net.minecraft.world.entity.player.Player player)
      This method executes every forge Player tick (pre phase, both sides) where the player is in the biome associated with this affinity.
      Specified by:
      onPlayerTick in class EnvironmentalAffinity
      Parameters:
      player -
    • onWorldTick

      public void onWorldTick(net.minecraft.world.level.Level world)
      This method executes every forge World tick (pre phase, both sides).
      Specified by:
      onWorldTick in class EnvironmentalAffinity
      Parameters:
      world -