Implement pre-spawn API to allow modifications to spawned entities.

See preceding commit for why this change was included.

By: Xor Boole <mcyoung@mit.edu>
This commit is contained in:
Bukkit/Spigot
2016-12-06 21:38:05 +11:00
parent ef84e6b90f
commit eae60ccc96
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package org.bukkit.util;
/**
* Represents an operation that accepts a single input argument and returns no
* result.
*
* @param <T> the type of the input to the operation
*/
public interface Consumer<T> {
/**
* Performs this operation on the given argument.
*
* @param t the input argument
*/
void accept(T t);
}