command arguments done

This commit is contained in:
gnembon committed 2020-11-09 03:04:26 -04:00
1 parent 083792ae96
commit 9e8556f9d9
5 files changed
+422 -78

No files matched your search

@@ -76,15 +76,10 @@ public class ListValue extends AbstractListValue implements ContainerValueInterf
items = list;
}
@Deprecated
public static Value fromItemStack(ItemStack itemstack)
{
if (itemstack == null || itemstack.isEmpty())
return Value.NULL;
return ListValue.of(
new StringValue(nameFromRegistryId(Registry.ITEM.getId(itemstack.getItem()))),
new NumericValue(itemstack.getCount()),
NBTSerializableValue.fromStack(itemstack)
);
return ValueConversions.of(itemstack);
}
public static Value fromTriple(double a, double b, double c)