public class AdvancementRewards
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AdvancementRewards.Deserializer |
Modifier and Type | Field and Description |
---|---|
static AdvancementRewards |
EMPTY |
private int |
experience |
private FunctionObject.CacheableFunction |
function |
private ResourceLocation[] |
loot |
private ResourceLocation[] |
recipes |
Constructor and Description |
---|
AdvancementRewards(int experience,
ResourceLocation[] loot,
ResourceLocation[] recipes,
FunctionObject.CacheableFunction function) |
Modifier and Type | Method and Description |
---|---|
void |
apply(EntityPlayerMP player) |
java.lang.String |
toString() |
public static final AdvancementRewards EMPTY
private final int experience
private final ResourceLocation[] loot
private final ResourceLocation[] recipes
private final FunctionObject.CacheableFunction function
public AdvancementRewards(int experience, ResourceLocation[] loot, ResourceLocation[] recipes, FunctionObject.CacheableFunction function)
public void apply(EntityPlayerMP player)
public java.lang.String toString()
toString
in class java.lang.Object