public class CopyStateFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
CopyStateFunction.Builder |
static class |
CopyStateFunction.Serializer |
ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private Set<Property<?>> |
properties |
conditions
Modifier | Constructor and Description |
---|---|
private |
CopyStateFunction(LootCondition[] lootCondition,
Block block,
Set<Property<?>> properties) |
Modifier and Type | Method and Description |
---|---|
static CopyStateFunction.Builder |
getBuilder(Block block) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootFunctionType |
getType() |
private static <T extends Comparable<T>> |
method_21893(BlockState blockState,
Property<T> property) |
protected ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
andThen
private CopyStateFunction(LootCondition[] lootCondition, Block block, Set<Property<?>> properties)
public LootFunctionType getType()
public Set<LootContextParameter<?>> getRequiredParameters()
protected ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static CopyStateFunction.Builder getBuilder(Block block)
private static <T extends Comparable<T>> String method_21893(BlockState blockState, Property<T> property)