public class SetAttributes extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SetAttributes.Modifier |
static class |
SetAttributes.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private SetAttributes.Modifier[] |
modifiers |
| Constructor and Description |
|---|
SetAttributes(LootCondition[] conditionsIn,
SetAttributes.Modifier[] modifiersIn) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditionsprivate static final org.apache.logging.log4j.Logger LOGGER
private final SetAttributes.Modifier[] modifiers
public SetAttributes(LootCondition[] conditionsIn, SetAttributes.Modifier[] modifiersIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply in class LootFunction