mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 10:55:06 +00:00
spotless apply
This commit is contained in:
1 parent
1f6dc04a71
commit
99f8e98017
14 files changed
+190
-147
No files matched your search
@@ -27,6 +27,7 @@ import com.google.common.collect.ImmutableList;
|
||||
public enum GuiType {
|
||||
|
||||
FLUID_AUTO_FILLER(new TileGuiFactory<TileFluidAutoFiller>(TileFluidAutoFiller.class) {
|
||||
|
||||
@Override
|
||||
protected Object createServerGui(EntityPlayer player, TileFluidAutoFiller inv) {
|
||||
return new ContainerFluidAutoFiller(player.inventory, inv);
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.glodblock.github.inventory.slot;
|
||||
|
||||
import appeng.container.slot.SlotRestrictedInput;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import org.apache.commons.lang3.tuple.MutablePair;
|
||||
|
||||
import appeng.container.slot.SlotRestrictedInput;
|
||||
@@ -13,6 +13,7 @@ public class FCSlotRestrictedInput extends SlotRestrictedInput {
|
||||
|
||||
@FunctionalInterface
|
||||
public interface Filter {
|
||||
|
||||
MutablePair<Boolean, ItemStack> isItemValid(final ItemStack inputItem);
|
||||
}
|
||||
|
||||
@@ -23,9 +24,7 @@ public class FCSlotRestrictedInput extends SlotRestrictedInput {
|
||||
public FCSlotRestrictedInput(ItemStack valid, IInventory i, int slotIndex, int x, int y, InventoryPlayer p) {
|
||||
this(
|
||||
(inputItem) -> new MutablePair<>(
|
||||
valid.getItem()
|
||||
.getClass()
|
||||
.isAssignableFrom(inputItem.getItem().getClass()),
|
||||
valid.getItem().getClass().isAssignableFrom(inputItem.getItem().getClass()),
|
||||
valid),
|
||||
i,
|
||||
slotIndex,
|
||||
|
||||
Reference in new issue
Block a user