mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Update for 1.11. Missing assets, unstable.
This commit is contained in:
1 parent
30d7365518
commit
9611ae08ae
1145 files changed
+15561
-18107
No files matched your search
@@ -10,8 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.storage;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.awt.*;
|
||||
import java.awt.Color;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import forestry.api.storage.BackpackManager;
|
||||
@@ -24,26 +23,23 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
public class BackpackDefinition implements IBackpackDefinition {
|
||||
private final int primaryColor;
|
||||
private final int secondaryColor;
|
||||
@Nonnull
|
||||
private final Predicate<ItemStack> filter;
|
||||
|
||||
public BackpackDefinition(@Nonnull Color primaryColor, @Nonnull Color secondaryColor) {
|
||||
public BackpackDefinition(Color primaryColor, Color secondaryColor) {
|
||||
this(primaryColor, secondaryColor, BackpackManager.backpackInterface.createBackpackFilter());
|
||||
}
|
||||
|
||||
public BackpackDefinition(@Nonnull Color primaryColor, @Nonnull Color secondaryColor, @Nonnull Predicate<ItemStack> filter) {
|
||||
public BackpackDefinition(Color primaryColor, Color secondaryColor, Predicate<ItemStack> filter) {
|
||||
this.primaryColor = primaryColor.getRGB();
|
||||
this.secondaryColor = secondaryColor.getRGB();
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public Predicate<ItemStack> getFilter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getName(ItemStack backpack) {
|
||||
Item item = backpack.getItem();
|
||||
|
||||
Reference in new issue
Block a user