1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Add Old Methods as Deprecated

This commit is contained in:
JustAHuman-xD 2023-07-04 16:46:58 -05:00
parent a7605a64b4
commit 2b4681ea7b
3 changed files with 28 additions and 0 deletions

View File

@ -46,6 +46,16 @@ public class ElectricGoldPan extends AContainer implements RecipeDisplayItem {
addItemSetting(overrideOutputLimit);
}
/**
* @deprecated
*
* @see ElectricGoldPan#isOutputLimitOverridden()
*/
@Deprecated
public boolean isOutputLimitOverriden() {
return isOutputLimitOverridden();
}
/**
* This returns whether the {@link ElectricGoldPan} will stop processing inputs
* if both output slots contain items or if that default behavior should be

View File

@ -62,6 +62,18 @@ public class GoldPan extends SimpleSlimefunItem<ItemUseHandler> implements Recip
addItemHandler(onEntityInteract());
}
/**
* @deprecated
*
* This method returns the old {@link Material} that this {@link GoldPan} accepted
*
* @return The old {@link Material} this {@link GoldPan} could be used on
*/
@Deprecated
public Material getInputMaterial() {
return Material.GRAVEL;
}
/**
* This method returns the target {@link Material Materials} for this {@link GoldPan}.
*

View File

@ -32,6 +32,12 @@ public class NetherGoldPan extends GoldPan {
super(itemGroup, item, recipeType, recipe);
}
@Override
@Deprecated
public Material getInputMaterial() {
return Material.SOUL_SAND;
}
@Override
public @Nonnull Set<Material> getInputMaterials() {
return inputMaterials;