Class SunSpawner
java.lang.Object
nokunami.floral_warfare.api.common.SunSpawner
-
Constructor Summary
ConstructorsConstructorDescriptionSunSpawner(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> orb, net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 position, int sunCount) SunSpawner(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 position, int sunCount) -
Method Summary
Modifier and TypeMethodDescriptiondeductSolarBank(boolean deduct) static <T extends net.minecraft.world.entity.Entity & ISunProducer>
voidproduceSun(T entity, int sunCount) setSun(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> set) setSun(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> set, boolean should) voidspawnSun()voidspawnSun(Consumer<AbstractSunOrb> consumer) static SunSpawnerspawnSun(Supplier<? extends net.minecraft.world.entity.EntityType<? extends AbstractSunOrb>> orb, net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 position, int sunCount) static SunSpawnerspawnSun(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, int sunCount) static SunSpawnerspawnSun(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 position, int sunCount) static SunSpawnerspawnSun(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 position, int sunCount)
-
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
-
spawnSun
public void spawnSun() -
spawnSun
-
produceSun
public static <T extends net.minecraft.world.entity.Entity & ISunProducer> void produceSun(T entity, int sunCount)
-