-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08463b3
commit 7602449
Showing
96 changed files
with
2,492 additions
and
944 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
704 changes: 363 additions & 341 deletions
704
...form-api/src/main/java/com/refinedmods/refinedstorage2/platform/api/PlatformApiProxy.java
Large diffs are not rendered by default.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...nedstorage2/platform/api/blockentity/storagemonitor/StorageMonitorExtractionStrategy.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,13 @@ | ||
package com.refinedmods.refinedstorage2.platform.api.blockentity.storagemonitor; | ||
|
||
import com.refinedmods.refinedstorage2.api.network.Network; | ||
import com.refinedmods.refinedstorage2.api.storage.Actor; | ||
|
||
import net.minecraft.world.entity.player.Player; | ||
import org.apiguardian.api.API; | ||
|
||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.3.1") | ||
@FunctionalInterface | ||
public interface StorageMonitorExtractionStrategy { | ||
boolean extract(Object resource, boolean fullStack, Player player, Actor actor, Network network); | ||
} |
15 changes: 15 additions & 0 deletions
15
...inedstorage2/platform/api/blockentity/storagemonitor/StorageMonitorInsertionStrategy.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,15 @@ | ||
package com.refinedmods.refinedstorage2.platform.api.blockentity.storagemonitor; | ||
|
||
import com.refinedmods.refinedstorage2.api.network.Network; | ||
import com.refinedmods.refinedstorage2.api.storage.Actor; | ||
|
||
import java.util.Optional; | ||
|
||
import net.minecraft.world.item.ItemStack; | ||
import org.apiguardian.api.API; | ||
|
||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.3.1") | ||
@FunctionalInterface | ||
public interface StorageMonitorInsertionStrategy { | ||
Optional<ItemStack> insert(Object configuredResource, ItemStack stack, Actor actor, Network network); | ||
} |
7 changes: 7 additions & 0 deletions
7
...com/refinedmods/refinedstorage2/platform/api/blockentity/storagemonitor/package-info.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,7 @@ | ||
@ParametersAreNonnullByDefault | ||
@FieldsAndMethodsAreNonnullByDefault | ||
package com.refinedmods.refinedstorage2.platform.api.blockentity.storagemonitor; | ||
|
||
import com.refinedmods.refinedstorage2.api.core.FieldsAndMethodsAreNonnullByDefault; | ||
|
||
import javax.annotation.ParametersAreNonnullByDefault; |
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
9 changes: 9 additions & 0 deletions
9
...-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/ContainedFluid.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,9 @@ | ||
package com.refinedmods.refinedstorage2.platform.common; | ||
|
||
import com.refinedmods.refinedstorage2.api.resource.ResourceAmount; | ||
import com.refinedmods.refinedstorage2.platform.api.resource.FluidResource; | ||
|
||
import net.minecraft.world.item.ItemStack; | ||
|
||
public record ContainedFluid(ItemStack remainderContainer, ResourceAmount<FluidResource> fluid) { | ||
} |
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
Oops, something went wrong.