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 SummaryModifier and TypeMethodDescriptionbooleantransform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.
- 
Method Details- 
transformboolean transform(@NotNull @NotNull LimitedRegion region, int x, int y, int z, @NotNull @NotNull Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.- Parameters:
- region- the accessible region
- x- the x position of the entity
- y- the y position of the entity
- z- the z position of the entity
- entity- the entity
- allowedToSpawn- if the entity is allowed to spawn
- Returns:
- trueif the entity should be spawned otherwise- false
 
 
-