1package com.osroyale.content.bags.impl;
3import com.osroyale.content.bags.ItemBag;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.game.world.items.Item;
6import com.osroyale.game.world.items.ItemDefinition;
7import com.osroyale.game.world.items.containers.ItemContainer;
9import java.util.Objects;
10import java.util.function.Predicate;
37public class CoalBag
extends ItemBag {
39 public static final int SIZE = 27;
46 public String getItem() {
51 public String getName() {
56 public Predicate<Item> isAllowed() {
61 public String getIndication() {
66 public void check(
Player player) {
67 if(container.getFreeSlots() == SIZE) {
68 player.message(
"The "+getName()+
" is empty.");
72 player.message(
"The "+getName()+
" contains "+container.computeAmountForId(453)+
" pieces of coal.");
static ItemDefinition get(int id)