public class CopyBlockState extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
CopyBlockState.Builder |
static class |
CopyBlockState.Serializer |
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private Block |
field_227543_a_ |
private java.util.Set<IProperty<?>> |
field_227544_c_ |
conditions
Modifier | Constructor and Description |
---|---|
private |
CopyBlockState(ILootCondition[] p_i225890_1_,
Block p_i225890_2_,
java.util.Set<IProperty<?>> p_i225890_3_) |
Modifier and Type | Method and Description |
---|---|
protected ItemStack |
doApply(ItemStack stack,
LootContext context) |
static CopyBlockState.Builder |
func_227545_a_(Block p_227545_0_) |
private static <T extends java.lang.Comparable<T>> |
func_227546_a_(BlockState p_227546_0_,
IProperty<T> p_227546_1_) |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
apply, builder, func_225580_a_
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
private final Block field_227543_a_
private final java.util.Set<IProperty<?>> field_227544_c_
private CopyBlockState(ILootCondition[] p_i225890_1_, Block p_i225890_2_, java.util.Set<IProperty<?>> p_i225890_3_)
public java.util.Set<LootParameter<?>> getRequiredParameters()
protected ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction
public static CopyBlockState.Builder func_227545_a_(Block p_227545_0_)
private static <T extends java.lang.Comparable<T>> java.lang.String func_227546_a_(BlockState p_227546_0_, IProperty<T> p_227546_1_)