com.parzivail.pswg.compat.rei.plugins.GalaxiesREIClientPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pswg Show documentation
Show all versions of pswg Show documentation
Explore the galaxy with Galaxies: Parzi's Star Wars Mod!
package com.parzivail.pswg.compat.rei.plugins;
import com.parzivail.pswg.Resources;
import com.parzivail.pswg.client.screen.MoistureVaporatorScreen;
import com.parzivail.pswg.compat.rei.categories.MoistureVaporatorCategory;
import com.parzivail.pswg.compat.rei.displays.MoistureVaporatorDisplay;
import com.parzivail.pswg.container.SwgBlocks;
import com.parzivail.pswg.container.SwgRecipeType;
import com.parzivail.pswg.recipe.VaporatorRecipe;
import com.parzivail.pswg.screen.MoistureVaporatorScreenHandler;
import me.shedaniel.math.Rectangle;
import me.shedaniel.rei.api.client.plugins.REIClientPlugin;
import me.shedaniel.rei.api.client.registry.category.CategoryRegistry;
import me.shedaniel.rei.api.client.registry.display.DisplayRegistry;
import me.shedaniel.rei.api.client.registry.screen.ScreenRegistry;
import me.shedaniel.rei.api.client.registry.transfer.TransferHandlerRegistry;
import me.shedaniel.rei.api.client.registry.transfer.simple.SimpleTransferHandler;
import me.shedaniel.rei.api.common.util.EntryStacks;
import net.minecraft.class_2960;
public class GalaxiesREIClientPlugin implements REIClientPlugin
{
public static final class_2960 DISPLAY_TEXTURE = Resources.id("textures/gui/rei/display.png");
public static final class_2960 DISPLAY_TEXTURE_DARK = Resources.id("textures/gui/rei/display_dark.png");
@Override
public void registerCategories(CategoryRegistry registry)
{
registry.add(new MoistureVaporatorCategory());
registry.addWorkstations(GalaxiesREICategories.MOISTURE_VAPORATOR, EntryStacks.of(SwgBlocks.MoistureVaporator.Gx8));
}
@Override
public void registerDisplays(DisplayRegistry registry)
{
registry.registerRecipeFiller(VaporatorRecipe.class, SwgRecipeType.Vaporator, MoistureVaporatorDisplay::new);
}
@Override
public void registerScreens(ScreenRegistry registry)
{
registry.registerContainerClickArea(new Rectangle(61, 26 , 52, 32), MoistureVaporatorScreen.class, GalaxiesREICategories.MOISTURE_VAPORATOR);
}
@SuppressWarnings("UnstableApiUsage")
@Override
public void registerTransferHandlers(TransferHandlerRegistry registry)
{
registry.register(SimpleTransferHandler.create(MoistureVaporatorScreenHandler.class, GalaxiesREICategories.MOISTURE_VAPORATOR, new SimpleTransferHandler.IntRange(0, 1)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy