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 TypeMethodDescriptionbooleanReturns the BukkitEntitybeing spawned.EntityInjection<?, ?> Returns theEntityInjectionused to register this Bestium entity.inthashCode()
-
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 BukkitEntitybeing spawned.- Returns:
- the spawning Bukkit entity
-
getInjection
Returns theEntityInjectionused to register this Bestium entity.- Returns:
- the entity's Bestium injection
-
equals
-
hashCode
public int hashCode()
-