Package org.bukkit.util
Interface EntityTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A EntityTransformer is used to modify entities that are spawned by structure.
-
Method Summary
Modifier and TypeMethodDescriptionbooleantransform(LimitedRegion region, int x, int y, int z, Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.
-
Method Details
-
transform
boolean transform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.- Parameters:
region- the accessible regionx- the x position of the entityy- the y position of the entityz- the z position of the entityentity- the entityallowedToSpawn- if the entity is allowed to spawn- Returns:
trueif the entity should be spawned otherwisefalse
-