7677787980818283848586
} final int x = action.getInt(X); final int y = action.getInt(Y); final PassiveEntity entity = (PassiveEntity) object; if (mayDisplace(player, zone, x, y, entity)) { displace(player, zone, x, y, entity, quantity); } }
495051525354555657585960
@Test(expected = SlotIsFullException.class) public final void testSize() { final Chest ch = new Chest(); assertEquals(0, ch.size()); for (int i = 0; i < 30; i++) { ch.add(new PassiveEntity() { }); } assertEquals(30, ch.size()); ch.add(new PassiveEntity() { }); }