-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #742 from refinedmods/release/2.0.0-milestone.4.11
Release v2.0.0-milestone.4.11
- Loading branch information
Showing
155 changed files
with
3,044 additions
and
1,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...-api/src/main/java/com/refinedmods/refinedstorage/common/api/RefinedStorageClientApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.refinedmods.refinedstorage.common.api; | ||
|
||
import com.refinedmods.refinedstorage.api.resource.ResourceAmount; | ||
import com.refinedmods.refinedstorage.api.resource.ResourceKey; | ||
import com.refinedmods.refinedstorage.common.api.grid.GridInsertionHint; | ||
import com.refinedmods.refinedstorage.common.api.grid.GridInsertionHints; | ||
import com.refinedmods.refinedstorage.common.api.support.resource.ResourceRendering; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import javax.annotation.Nullable; | ||
|
||
import net.minecraft.client.gui.screens.Screen; | ||
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import net.minecraft.world.inventory.AbstractContainerMenu; | ||
import net.minecraft.world.item.Item; | ||
import org.apiguardian.api.API; | ||
|
||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.11") | ||
public interface RefinedStorageClientApi { | ||
RefinedStorageClientApi INSTANCE = new RefinedStorageClientApiProxy(); | ||
|
||
AbstractContainerScreen<AbstractContainerMenu> createStorageBlockScreen( | ||
AbstractContainerMenu menu, | ||
Inventory inventory, | ||
Component title, | ||
Class<? extends ResourceKey> resourceClass | ||
); | ||
|
||
void openAutocraftingPreview(List<ResourceAmount> requests, @Nullable Screen parentScreen); | ||
|
||
<T extends ResourceKey> void registerResourceRendering(Class<T> resourceClass, ResourceRendering rendering); | ||
|
||
<T extends ResourceKey> ResourceRendering getResourceRendering(Class<T> resourceClass); | ||
|
||
void addAlternativeGridInsertionHint(GridInsertionHint hint); | ||
|
||
GridInsertionHints getGridInsertionHints(); | ||
|
||
void registerDiskModel(Item item, ResourceLocation model); | ||
|
||
Set<ResourceLocation> getDiskModels(); | ||
|
||
Map<Item, ResourceLocation> getDiskModelsByItem(); | ||
} |
Oops, something went wrong.