Added callback line of sight methods. Thanks xZise!

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-10-01 16:16:22 -04:00
parent 297f375b44
commit 8ce68d156e
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package org.bukkit.util;
/**
* Primitive callback class, to allow specific callback handling. For example to determine if a block in sight is invisible.
*
* @param <Result> This is the type it will return.
* @param <Parameter> This is the type it has as parameter.
*/
public interface Callback<Result, Parameter> {
/**
* This method will be called on each step.
*
* @param parameter The parameter of this step.
* @return The result of the step.
*/
public Result call(Parameter parameter);
}