Package net.minecraft.command
Class FunctionObject.CacheableFunction
- java.lang.Object
-
- net.minecraft.command.FunctionObject.CacheableFunction
-
- Enclosing class:
- FunctionObject
public static class FunctionObject.CacheableFunction extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Optional<FunctionObject>
function
private ResourceLocation
id
static FunctionObject.CacheableFunction
NONE
private boolean
resolved
-
Constructor Summary
Constructors Constructor Description CacheableFunction(FunctionObject p_i47602_1_)
CacheableFunction(ResourceLocation p_i47537_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<FunctionObject>
get(FunctionManager p_218039_1_)
ResourceLocation
getId()
-
-
-
Field Detail
-
NONE
public static final FunctionObject.CacheableFunction NONE
-
id
@Nullable private final ResourceLocation id
-
resolved
private boolean resolved
-
function
private java.util.Optional<FunctionObject> function
-
-
Constructor Detail
-
CacheableFunction
public CacheableFunction(@Nullable ResourceLocation p_i47537_1_)
-
CacheableFunction
public CacheableFunction(FunctionObject p_i47602_1_)
-
-
Method Detail
-
get
public java.util.Optional<FunctionObject> get(FunctionManager p_218039_1_)
-
getId
@Nullable public ResourceLocation getId()
-
-