Class Atmosphere

java.lang.Object
io.github.addoncommunity.galactifun.api.universe.attributes.atmosphere.Atmosphere

@ParametersAreNonnullByDefault public final class Atmosphere extends Object
An atmosphere of a celestial object, use AtmosphereBuilder to create
  • Field Details

  • Constructor Details

    • Atmosphere

      public Atmosphere(boolean weatherEnabled, boolean storming, boolean thundering, @Nonnull org.bukkit.World.Environment environment, @Nonnull Map<Gas,Double> composition, double pressure, @Nonnull Map<AtmosphericEffect, Integer> effects)
  • Method Details

    • applyEffects

      public void applyEffects(@Nonnull org.bukkit.World world)
    • applyEffects

      public void applyEffects(@Nonnull org.bukkit.entity.Player player)
    • compositionOf

      public double compositionOf(@Nonnull Gas gas)
    • pressurizedCompositionOf

      public double pressurizedCompositionOf(@Nonnull Gas gas)
    • requiresOxygenTank

      public boolean requiresOxygenTank()
    • toBuilder

      public AtmosphereBuilder toBuilder()
    • weatherEnabled

      public boolean weatherEnabled()
    • storming

      public boolean storming()
    • thundering

      public boolean thundering()
    • flammable

      public boolean flammable()
    • growthAttempts

      public int growthAttempts()
    • pressure

      public double pressure()
    • environment

      public org.bukkit.World.Environment environment()
    • effects

      public Map<AtmosphericEffect, Integer> effects()
    • composition

      public Map<Gas,Double> composition()
    • weightedCompositionSet

      public io.github.thebusybiscuit.slimefun5.libraries.dough.collections.RandomizedSet<Gas> weightedCompositionSet()