Class SunSpawner

java.lang.Object
nokunami.floral_warfare.api.common.SunSpawner

public class SunSpawner extends Object
  • Constructor Details

    • SunSpawner

      public SunSpawner(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 position, int sunCount)
    • SunSpawner

      public SunSpawner(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> orb, net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 position, int sunCount)
  • Method Details

    • spawnSun

      public static SunSpawner spawnSun(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, int sunCount)
    • spawnSun

      public static SunSpawner spawnSun(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 position, int sunCount)
    • spawnSun

      public static SunSpawner spawnSun(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 position, int sunCount)
    • spawnSun

      public static SunSpawner spawnSun(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> orb, net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 position, int sunCount)
    • setSun

      public SunSpawner setSun(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> set, boolean should)
    • setSun

      public SunSpawner setSun(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> set)
    • deductSolarBank

      public SunSpawner deductSolarBank(boolean deduct)
    • spawnSun

      public void spawnSun()
    • spawnSun

      public void spawnSun(Consumer<AbstractSunOrb> consumer)
    • produceSun

      public static <T extends net.minecraft.world.entity.Entity & ISunProducer> void produceSun(T entity, int sunCount)