Class PurposelyBrokenEnv
java.lang.Object
etithespirit.orimod.api.environment.EnvironmentalAffinity
etithespirit.orimod.apiimpl.debug.PurposelyBrokenEnv
-
Field Summary
Fields inherited from class etithespirit.orimod.api.environment.EnvironmentalAffinity
biome, efficiency, efficiencySingular
-
Constructor Summary
ConstructorsConstructorDescriptionPurposelyBrokenEnv
(net.minecraft.resources.ResourceLocation biome, NumberRange efficiencyPercentage) Create a new affinity object for the given biome using the given flux and static efficiency percentage. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
onWorldTick
(net.minecraft.world.level.Level world) This method executes every forge World tick (pre phase, both sides).Methods inherited from class etithespirit.orimod.api.environment.EnvironmentalAffinity
getNextEfficiencyMultiplier, sendPlayerTickToAll, sendWorldTickToAll
-
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 classEnvironmentalAffinity
- 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 classEnvironmentalAffinity
- Parameters:
world
-
-