mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 19:05:31 +00:00
Misc cleanup
- add missing `serialVersionUID` fields - addess vararg warnings
This commit is contained in:
1 parent
646988aae8
commit
2bcd3bb46c
3 files changed
+7
-3
No files matched your search
@@ -8,6 +8,8 @@ package forestry.core.multiblock;
|
||||
*/
|
||||
public class MultiblockValidationException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -3255564315819077747L;
|
||||
|
||||
public MultiblockValidationException(String reason) {
|
||||
super(reason);
|
||||
}
|
||||
|
||||
@@ -32,17 +32,17 @@ public class CarpenterRecipeManager implements ICarpenterManager {
|
||||
private static final Set<Fluid> recipeFluids = new HashSet<>();
|
||||
|
||||
@Override
|
||||
public void addRecipe(ItemStack box, ItemStack product, Object materials[]) {
|
||||
public void addRecipe(ItemStack box, ItemStack product, Object... materials) {
|
||||
addRecipe(5, null, box, product, materials);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addRecipe(int packagingTime, ItemStack box, ItemStack product, Object materials[]) {
|
||||
public void addRecipe(int packagingTime, ItemStack box, ItemStack product, Object... materials) {
|
||||
addRecipe(packagingTime, null, box, product, materials);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addRecipe(int packagingTime, FluidStack liquid, ItemStack box, ItemStack product, Object materials[]) {
|
||||
public void addRecipe(int packagingTime, FluidStack liquid, ItemStack box, ItemStack product, Object... materials) {
|
||||
ICarpenterRecipe recipe = new CarpenterRecipe(
|
||||
packagingTime,
|
||||
liquid,
|
||||
|
||||
@@ -164,6 +164,8 @@ public class PluginFluids extends ForestryPlugin {
|
||||
|
||||
public static class MissingFluidException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -5764238838259167615L;
|
||||
|
||||
public MissingFluidException(String tag) {
|
||||
super("Fluid '" + tag + "' was not found. Please check your configs.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user