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:
17
paper-api/src/main/java/org/bukkit/util/Consumer.java
Normal file
17
paper-api/src/main/java/org/bukkit/util/Consumer.java
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user