pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
+17 -18
View File
@@ -18,35 +18,34 @@
package appeng.util;
import java.util.concurrent.Callable;
import javax.annotation.Nullable;
import net.minecraft.world.World;
/**
* An interface similar to {@link Callable}, but allowing to pass the {@link World} when calling.
* An interface similar to {@link Callable}, but allowing to pass the
* {@link World} when calling.
*
* @author yueh
* @version rv3
* @see Callable
* @since rv3
*/
public interface IWorldCallable<T>
{
/**
* Similar to {@link Callable#call()}
*
* @param world this param is given to not hold a reference to the world but let the caller handle it. Do not expect
* a world here thus can be <tt>null</tt>.
*
* @return result of call on the world. Can be <tt>null</tt>.
*
* @throws Exception if the call fails
* @see Callable#call()
*/
@Nullable
T call( @Nullable World world ) throws Exception;
public interface IWorldCallable<T> {
/**
* Similar to {@link Callable#call()}
*
* @param world this param is given to not hold a reference to the world but let
* the caller handle it. Do not expect a world here thus can be
* <tt>null</tt>.
*
* @return result of call on the world. Can be <tt>null</tt>.
*
* @throws Exception if the call fails
* @see Callable#call()
*/
@Nullable
T call(@Nullable World world) throws Exception;
}