Search in sources :

Example 1 with AccessorContainerStorageTerminal

use of top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorContainerStorageTerminal in project Polymorph by TheIllusiveC4.

the class TomsStorageModule method setup.

@Override
public void setup() {
    IPolymorphCommon commonApi = PolymorphApi.common();
    commonApi.registerTileEntity2RecipeData(pTileEntity -> {
        if (pTileEntity instanceof TileEntityCraftingTerminal) {
            return new CraftingTerminalRecipeData((TileEntityCraftingTerminal) pTileEntity);
        }
        return null;
    });
    commonApi.registerContainer2TileEntity(pContainer -> {
        if (pContainer instanceof ContainerCraftingTerminal) {
            return ((AccessorContainerStorageTerminal) pContainer).getTe();
        }
        return null;
    });
}
Also used : AccessorTileEntityCraftingTerminal(top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorTileEntityCraftingTerminal) TileEntityCraftingTerminal(com.tom.storagemod.tile.TileEntityCraftingTerminal) ContainerCraftingTerminal(com.tom.storagemod.gui.ContainerCraftingTerminal) AccessorContainerStorageTerminal(top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorContainerStorageTerminal) IPolymorphCommon(top.theillusivec4.polymorph.api.common.base.IPolymorphCommon)

Aggregations

ContainerCraftingTerminal (com.tom.storagemod.gui.ContainerCraftingTerminal)1 TileEntityCraftingTerminal (com.tom.storagemod.tile.TileEntityCraftingTerminal)1 IPolymorphCommon (top.theillusivec4.polymorph.api.common.base.IPolymorphCommon)1 AccessorContainerStorageTerminal (top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorContainerStorageTerminal)1 AccessorTileEntityCraftingTerminal (top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorTileEntityCraftingTerminal)1