mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
Deprecated Forge's ISidedInventroy, there is a vanilla solution. Added temporary config option to legacy furnace slot orientation.
This commit is contained in:
1 parent
9f8a07f7d8
commit
a91a50cd9d
3 files changed
+27
-9
No files matched your search
@@ -26,6 +26,7 @@ import static net.minecraftforge.common.ForgeVersion.*;
|
||||
public class ForgeDummyContainer extends DummyModContainer implements WorldAccessContainer
|
||||
{
|
||||
public static int clumpingThreshold = 64;
|
||||
public static boolean legacyFurnaceSides = false;
|
||||
|
||||
public ForgeDummyContainer()
|
||||
{
|
||||
@@ -77,6 +78,10 @@ public class ForgeDummyContainer extends DummyModContainer implements WorldAcces
|
||||
clumpingThreshold = 64;
|
||||
clumpingThresholdProperty.set(64);
|
||||
}
|
||||
|
||||
Property furnaceOutput = config.get(Configuration.CATEGORY_GENERAL, "legacyFurnceOutput", false);
|
||||
furnaceOutput.comment = "Controls the sides of vanilla furnaces for Forge's ISidedInventroy, Vanilla defines the output as the bottom, but mods/Forge define it as the sides. Settings this to true will restore the old side relations.";
|
||||
legacyFurnaceSides = furnaceOutput.getBoolean(false);
|
||||
|
||||
if (config.hasChanged())
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ import net.minecraft.inventory.IInventory;
|
||||
/** Inventory ranges mapped by side. This class is implemented by TileEntities
|
||||
* that provide different inventory slot ranges to different sides.
|
||||
*/
|
||||
@Deprecated //A equivalent Interface is now in Minecraft Vanilla will be removed next major MC version
|
||||
public interface ISidedInventory extends IInventory
|
||||
{
|
||||
|
||||
@@ -17,12 +18,14 @@ public interface ISidedInventory extends IInventory
|
||||
* Get the start of the side inventory.
|
||||
* @param side The global side to get the start of range.
|
||||
*/
|
||||
@Deprecated
|
||||
int getStartInventorySide(ForgeDirection side);
|
||||
|
||||
/**
|
||||
* Get the size of the side inventory.
|
||||
* @param side The global side.
|
||||
*/
|
||||
@Deprecated
|
||||
int getSizeInventorySide(ForgeDirection side);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user