Replace usages of deprecated ListValue::fromItemStack and remove it
This commit is contained in:
3 files changed
+8
-15
No files matched your search
@@ -4,7 +4,6 @@ import carpet.script.LazyValue;
|
||||
import carpet.script.exception.InternalExpressionException;
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonElement;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.AbstractNumberTag;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.DoubleTag;
|
||||
@@ -75,12 +74,6 @@ public class ListValue extends AbstractListValue implements ContainerValueInterf
|
||||
items = list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static Value fromItemStack(ItemStack itemstack)
|
||||
{
|
||||
return ValueConversions.of(itemstack);
|
||||
}
|
||||
|
||||
public static Value fromTriple(double a, double b, double c)
|
||||
{
|
||||
return ListValue.of(new NumericValue(a), new NumericValue(b), new NumericValue(c));
|
||||
|
||||
Reference in new issue
Block a user