Код: Выделить всё
Slot slot = processor.pendingClick.container.slots.get(processor.pendingClick.slotNumber);
ItemStack itemStack = slot.getItem();
Item slotItem = itemStack.getItem();
ResourceLocation itemId = ForgeRegistries.ITEMS.getKey(slotItem);
String slotItemId = itemId != null ? itemId.toString() : "";
if (slotItemId.equals("minecraft:gold_nugget")) {
//sendItemInfo(itemStack);
}
, чтобы быть более точным, мне нужно получить цену за единицу цена < /p>
Подробнее здесь: https://stackoverflow.com/questions/797 ... 21-1-forge
Мобильная версия