Interface IgnisWorld
public interface IgnisWorld
Platform-neutral world handle for world-scoped operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigurePrimedTnt(Object platformEntity, int fuseTicks, float yield, boolean incendiary) voidcreateExplosion(IgnisLocation location, float power, boolean fire, boolean blockDamage) getBlockMaterialKey(IgnisLocation location) getEntityLocation(Object platformEntity) getName()getNearbyEntities(IgnisLocation center, double radius) getPlayersNear(IgnisLocation center, double radius) booleanisEntityValid(Object platformEntity) voidplaySound(IgnisLocation location, String soundKey, float volume, float pitch) voidremoveEntity(Object platformEntity) voidsetBlockMaterialKey(IgnisLocation location, String materialKey) voidsetEntityTarget(Object platformEntity, IgnisPlayer target) voidsetEntityVelocity(Object platformEntity, double velocityX, double velocityY, double velocityZ) spawnEntity(String entityType, IgnisLocation location) spawnFallingBlock(IgnisLocation location, String materialKey) voidspawnParticle(IgnisLocation location, String particleKey, int count, double offsetX, double offsetY, double offsetZ, double speed) spawnProjectile(String projectileType, IgnisLocation location, IgnisPlayer shooter, double velocityX, double velocityY, double velocityZ)
-
Method Details
-
getUniqueId
UUID getUniqueId() -
getName
String getName() -
createExplosion
-
playSound
-
spawnParticle
void spawnParticle(IgnisLocation location, String particleKey, int count, double offsetX, double offsetY, double offsetZ, double speed) -
spawnProjectile
Object spawnProjectile(String projectileType, IgnisLocation location, IgnisPlayer shooter, double velocityX, double velocityY, double velocityZ) - Returns:
- opaque platform entity handle (e.g. Bukkit Entity, Sponge Entity)
-
spawnEntity
-
setEntityVelocity
-
getEntityLocation
-
isEntityValid
-
getBlockMaterialKey
-
setBlockMaterialKey
-
spawnFallingBlock
-
getNearbyEntities
-
getPlayersNear
-
setEntityTarget
-
configurePrimedTnt
-
removeEntity
-