2020-05-02 18:56:54 +02:00
|
|
|
package de.ellpeck.prettypipes.pipe.modules;
|
|
|
|
|
|
|
|
import de.ellpeck.prettypipes.items.IModule;
|
|
|
|
import de.ellpeck.prettypipes.items.ModuleItem;
|
2020-05-08 02:51:07 +02:00
|
|
|
import de.ellpeck.prettypipes.misc.ItemEqualityType;
|
2020-05-02 18:56:54 +02:00
|
|
|
import de.ellpeck.prettypipes.pipe.PipeTileEntity;
|
|
|
|
import net.minecraft.client.util.ITooltipFlag;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import net.minecraft.util.text.ITextComponent;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Set;
|
|
|
|
import java.util.function.BiFunction;
|
|
|
|
|
|
|
|
public class FilterModifierModule extends ModuleItem {
|
|
|
|
|
2020-05-08 02:51:07 +02:00
|
|
|
public final ItemEqualityType type;
|
2020-05-02 18:56:54 +02:00
|
|
|
|
2020-05-08 02:51:07 +02:00
|
|
|
public FilterModifierModule(String name, ItemEqualityType type) {
|
2020-05-02 18:56:54 +02:00
|
|
|
super(name);
|
|
|
|
this.type = type;
|
|
|
|
this.setRegistryName(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isCompatible(ItemStack module, PipeTileEntity tile, IModule other) {
|
|
|
|
return other != this;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean hasContainer(ItemStack module, PipeTileEntity tile) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
|
|
|
super.addInformation(stack, worldIn, tooltip, flagIn);
|
|
|
|
}
|
|
|
|
}
|