MCPcopy Create free account
hub / github.com/e2wugui/zeze / Food

Class Food

ZezeJava/ZezexJava/server/src/Game/Item/Food.java:6–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import Game.Fight.IFighter;
5
6public class Food implements IFood {
7 private final BItem item;
8 private final BFoodExtra extra;
9
10 public Food(BItem item, BFoodExtra extra) {
11 this.item = item;
12 this.extra = extra;
13 }
14
15 @Override
16 public final int getAmount() {
17 return extra.getAmmount();
18 }
19
20 @Override
21 public int getId() {
22 return item.getId();
23 }
24
25 @Override
26 public boolean use() {
27 throw new UnsupportedOperationException();
28 }
29
30 @Override
31 public String formatTip() {
32 return "food" + getId();
33 }
34
35 @Override
36 public void calculateFighter(IFighter fighter) {
37
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected