Class EntitySpawnContext
java.lang.Object
cz.jeme.bestium.api.inject.variant.EntitySpawnContext
A context object wrapping an
Entity
and its properties when spawning.
This should be the only source of data for the logic
within VariantRule.apply(Map, EntitySpawnContext)
.
-
Constructor Summary
ConstructorsConstructorDescriptionEntitySpawnContext
(Entity entity) Creates an entity spawn context from the given entity. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the BukkitEntity
being spawned.EntityInjection
<?, ?> Returns theEntityInjection
used to register this Bestium entity.int
hashCode()
-
Constructor Details
-
EntitySpawnContext
Creates an entity spawn context from the given entity.This constructor is intended for internal use only.
- Parameters:
entity
- the entity to create context for
-
-
Method Details
-
getEntity
Returns the BukkitEntity
being spawned.- Returns:
- the spawning Bukkit entity
-
getInjection
Returns theEntityInjection
used to register this Bestium entity.- Returns:
- the entity's Bestium injection
-
equals
-
hashCode
public int hashCode()
-