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.

@FunctionalInterface @Experimental public interface EntityTransformer
A EntityTransformer is used to modify entities that are spawned by structure.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    transform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn)
    Transforms a entity in a structure.
  • Method Details

    • transform

      boolean 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:
      true if the entity should be spawned otherwise false