blob: 0242d9d1b4a0fcece35e4d982a6c50924dd8ffe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/*
* Roughly Enough Items by Danielshe.
* Licensed under the MIT License.
*/
package me.shedaniel.rei.impl;
import me.shedaniel.math.api.Rectangle;
import me.shedaniel.rei.api.EntryStack;
import me.shedaniel.rei.gui.widget.QueuedTooltip;
import net.minecraft.util.Identifier;
import javax.annotation.Nullable;
import java.util.Optional;
@Deprecated
public class EmptyEntryStack extends AbstractEntryStack {
@Deprecated
public static final EntryStack EMPTY = new EmptyEntryStack();
private EmptyEntryStack() {
}
@Override
public Optional<Identifier> getIdentifier() {
return Optional.empty();
}
@Override
public Type getType() {
return Type.EMPTY;
}
@Override
public int getAmount() {
return 0;
}
@Override
public void setAmount(int amount) {
}
@Override
public boolean isEmpty() {
return true;
}
@Override
public EntryStack copy() {
return this;
}
@Override
public Object getObject() {
return null;
}
@Override
public boolean equalsIgnoreTagsAndAmount(EntryStack stack) {
return stack.getType() == getType();
}
@Override
public boolean equalsIgnoreTags(EntryStack stack) {
return stack.getType() == getType();
}
@Override
public boolean equalsIgnoreAmount(EntryStack stack) {
return stack.getType() == getType();
}
@Override
public boolean equalsAll(EntryStack stack) {
return stack.getType() == getType();
}
@Override
@Nullable
public QueuedTooltip getTooltip(int mouseX, int mouseY) {
return null;
}
@Override
public void render(Rectangle bounds, int mouseX, int mouseY, float delta) {
}
@Override
public int hashCode() {
return 0;
}
}
|