mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 14:34:33 +00:00
Remove unnecessary modifiers from enums and interfaces
This commit is contained in:
1 parent
55c58cf5d9
commit
507b8fa2d6
80 files changed
+106
-106
No files matched your search
@@ -57,7 +57,7 @@ public enum Alcohol implements IFluidType, ICocktailLiquid {
|
||||
this.fermentationSolid = oreDict;
|
||||
}
|
||||
|
||||
private Alcohol(final String ident, final int colour, final double transparency, final double abv) {
|
||||
Alcohol(final String ident, final int colour, final double transparency, final double abv) {
|
||||
this.fermentationLiquid = new ArrayList<>();
|
||||
this.fermentationSolid = "";
|
||||
this.ident = ident;
|
||||
|
||||
@@ -43,7 +43,7 @@ public enum Cocktail {
|
||||
public int colour;
|
||||
public Map<ICocktailIngredient, Integer> ingredients;
|
||||
|
||||
private Cocktail(final String name, final Glassware glassware, final int colour) {
|
||||
Cocktail(final String name, final Glassware glassware, final int colour) {
|
||||
this.ingredients = new HashMap<>();
|
||||
this.name = name;
|
||||
this.glassware = glassware;
|
||||
|
||||
@@ -39,7 +39,7 @@ public enum Glassware {
|
||||
return this.capacity;
|
||||
}
|
||||
|
||||
private Glassware(final int capacity, final int contentBottom, final int contentHeight) {
|
||||
Glassware(final int capacity, final int contentBottom, final int contentHeight) {
|
||||
this.capacity = 30 * capacity;
|
||||
this.contentBottom = contentBottom / 32.0f;
|
||||
this.contentHeight = contentHeight / 32.0f;
|
||||
|
||||
@@ -38,7 +38,7 @@ public enum Juice implements IFluidType, ICocktailLiquid {
|
||||
this.squeezing = oreDict;
|
||||
}
|
||||
|
||||
private Juice(final String name, final String ident, final int colour, final double transparency, final String squeezing) {
|
||||
Juice(final String name, final String ident, final int colour, final double transparency, final String squeezing) {
|
||||
this.name = name;
|
||||
this.ident = ident;
|
||||
this.colour = colour;
|
||||
|
||||
@@ -35,11 +35,11 @@ public enum Liqueur implements IFluidType, ICocktailLiquid {
|
||||
private void addFlavour(final String oreDict) {
|
||||
}
|
||||
|
||||
private Liqueur(final String name, final int colour, final double transparency, final double abv) {
|
||||
Liqueur(final String name, final int colour, final double transparency, final double abv) {
|
||||
this(name + " Liqueur", "liqueur" + name, colour, transparency, abv);
|
||||
}
|
||||
|
||||
private Liqueur(final String name, final String ident, final int colour, final double transparency, final double abv) {
|
||||
Liqueur(final String name, final String ident, final int colour, final double transparency, final double abv) {
|
||||
this.name = name;
|
||||
this.ident = ident;
|
||||
this.colour = colour;
|
||||
|
||||
@@ -22,7 +22,7 @@ public enum MiscFluid implements IFluidType, ICocktailLiquid {
|
||||
int colour;
|
||||
float transparency;
|
||||
|
||||
private MiscFluid(final String name, final String ident, final int colour, final double transparency) {
|
||||
MiscFluid(final String name, final String ident, final int colour, final double transparency) {
|
||||
this.name = name;
|
||||
this.ident = ident;
|
||||
this.colour = colour;
|
||||
|
||||
@@ -42,7 +42,7 @@ public enum Spirit implements IFluidType, ICocktailLiquid {
|
||||
float transparency;
|
||||
float abv;
|
||||
|
||||
private Spirit(final String name, final String ident, final int colour, final double transparency, final double abv) {
|
||||
Spirit(final String name, final String ident, final int colour, final double transparency, final double abv) {
|
||||
this.name = name;
|
||||
this.ident = ident;
|
||||
this.colour = colour;
|
||||
|
||||
@@ -15,7 +15,7 @@ public enum DoorType {
|
||||
// IIcon iconDoorUpperFlip;
|
||||
// IIcon iconItem;
|
||||
|
||||
private DoorType(final String iconName) {
|
||||
DoorType(final String iconName) {
|
||||
this.id = iconName;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,12 +50,12 @@ public enum EnumExtraTreeLog implements IWoodType {
|
||||
IDesignMaterial plank;
|
||||
|
||||
|
||||
private EnumExtraTreeLog(final String name) {
|
||||
EnumExtraTreeLog(final String name) {
|
||||
this.plank = null;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
private EnumExtraTreeLog(final String name, final IDesignMaterial plank) {
|
||||
EnumExtraTreeLog(final String name, final IDesignMaterial plank) {
|
||||
this.name = name;
|
||||
this.plank = plank;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public enum FruitPod {
|
||||
short[] textures;
|
||||
// IIcon[] icons;
|
||||
|
||||
private FruitPod() {
|
||||
FruitPod() {
|
||||
this.textures = new short[]{BinnieCore.proxy.getUniqueTextureUID(), BinnieCore.proxy.getUniqueTextureUID(), BinnieCore.proxy.getUniqueTextureUID()};
|
||||
// this.icons = new IIcon[3];
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ public class PlankType {
|
||||
int color;
|
||||
//IIcon icon;
|
||||
|
||||
private ExtraTreePlanks(final int color) {
|
||||
ExtraTreePlanks(final int color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ public class PlankType {
|
||||
|
||||
int color;
|
||||
|
||||
private VanillaPlanks(final int color) {
|
||||
VanillaPlanks(final int color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ public class PlankType {
|
||||
|
||||
int color;
|
||||
|
||||
private ExtraBiomesPlank(final int color) {
|
||||
ExtraBiomesPlank(final int color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public enum DesignSystem implements IDesignSystem {
|
||||
// Map<Integer, IIcon> primary;
|
||||
// Map<Integer, IIcon> secondary;
|
||||
|
||||
private DesignSystem() {
|
||||
DesignSystem() {
|
||||
// this.primary = new HashMap<Integer, IIcon>();
|
||||
// this.secondary = new HashMap<Integer, IIcon>();
|
||||
DesignerManager.instance.registerDesignSystem(this);
|
||||
|
||||
@@ -232,7 +232,7 @@ public enum EnumDesign implements IDesign {
|
||||
this.setSouthPattern(edged);
|
||||
}
|
||||
|
||||
private EnumDesign(final String name) {
|
||||
EnumDesign(final String name) {
|
||||
this.topPattern = Layout.get(EnumPattern.Blank, false);
|
||||
this.bottomPattern = Layout.get(EnumPattern.Blank, false);
|
||||
this.northPattern = Layout.get(EnumPattern.Blank, false);
|
||||
@@ -487,7 +487,7 @@ public enum EnumDesign implements IDesign {
|
||||
String name;
|
||||
List<IDesign> designs;
|
||||
|
||||
private Category(final String name) {
|
||||
Category(final String name) {
|
||||
this.designs = new ArrayList<>();
|
||||
this.name = name;
|
||||
CarpentryManager.carpentryInterface.registerDesignCategory(this);
|
||||
|
||||
@@ -221,7 +221,7 @@ public enum EnumPattern implements IPattern {
|
||||
ILayout leftRotation;
|
||||
ILayout horizontalFlip;
|
||||
|
||||
private EnumPattern() {
|
||||
EnumPattern() {
|
||||
this.leftRotation = Layout.get(this, false);
|
||||
this.horizontalFlip = Layout.get(this, false);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ public class GlassType implements IDesignMaterial {
|
||||
String name;
|
||||
int colour;
|
||||
|
||||
private StandardColor(final String name, final int colour) {
|
||||
StandardColor(final String name, final int colour) {
|
||||
this.name = name;
|
||||
this.colour = colour;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public enum ExtraTreeTexture implements IBinnieTexture {
|
||||
public static String breweryTexture;
|
||||
public static String infuserTexture;
|
||||
|
||||
private ExtraTreeTexture(final ResourceType base, final String texture) {
|
||||
ExtraTreeTexture(final ResourceType base, final String texture) {
|
||||
this.texture = texture;
|
||||
this.type = base;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public enum ButterflySpecies implements IAlleleButterflySpecies {
|
||||
private Map<ItemStack, Float> butterflyLoot;
|
||||
private Map<ItemStack, Float> caterpillarLoot;
|
||||
|
||||
private ButterflySpecies(final String name, final String scientific, final int colour) {
|
||||
ButterflySpecies(final String name, final String scientific, final int colour) {
|
||||
this.butterflyLoot = new HashMap<>();
|
||||
this.caterpillarLoot = new HashMap<>();
|
||||
this.name = name;
|
||||
|
||||
@@ -10,7 +10,7 @@ public enum ExtraTreeFruitFamily implements IFruitFamily {
|
||||
String uid;
|
||||
String scientific;
|
||||
|
||||
private ExtraTreeFruitFamily(final String name, final String uid, final String scientific) {
|
||||
ExtraTreeFruitFamily(final String name, final String uid, final String scientific) {
|
||||
this.name = name;
|
||||
this.uid = uid;
|
||||
this.scientific = scientific;
|
||||
|
||||
@@ -1046,7 +1046,7 @@ public class ExtraTreeSpecies implements IAlleleTreeSpecies//, IIconProvider, IG
|
||||
public final short changedUID;
|
||||
public final String descript;
|
||||
|
||||
private LeafType(final short fancyUID, final short plainUID, final short changedUID, final String descript) {
|
||||
LeafType(final short fancyUID, final short plainUID, final short changedUID, final String descript) {
|
||||
this.fancyUID = fancyUID;
|
||||
this.plainUID = plainUID;
|
||||
this.changedUID = changedUID;
|
||||
|
||||
@@ -26,7 +26,7 @@ public enum ExtraTreeItems implements IItemMisc {
|
||||
String iconPath;
|
||||
// IIcon icon;
|
||||
|
||||
private ExtraTreeItems(final String name, final String iconPath) {
|
||||
ExtraTreeItems(final String name, final String iconPath) {
|
||||
this.name = name;
|
||||
this.iconPath = iconPath;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ public enum ExtraTreeLiquid implements ILiquidType {
|
||||
// IIcon icon;
|
||||
int colour;
|
||||
|
||||
private ExtraTreeLiquid(final String name, final String ident, final int colour) {
|
||||
ExtraTreeLiquid(final String name, final String ident, final int colour) {
|
||||
this.name = "";
|
||||
this.name = name;
|
||||
this.ident = ident;
|
||||
|
||||
@@ -79,11 +79,11 @@ public enum Food implements IItemMisc {
|
||||
int hunger;
|
||||
private List<String> ores;
|
||||
|
||||
private Food() {
|
||||
Food() {
|
||||
this(0);
|
||||
}
|
||||
|
||||
private Food(final int hunger) {
|
||||
Food(final int hunger) {
|
||||
this.ores = new ArrayList<>();
|
||||
this.hunger = hunger;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public enum KitchenMachine implements IMachineType {
|
||||
|
||||
Class<? extends MachinePackage> clss;
|
||||
|
||||
private KitchenMachine(final Class<? extends MachinePackage> clss) {
|
||||
KitchenMachine(final Class<? extends MachinePackage> clss) {
|
||||
this.clss = clss;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ public enum DesignerType {
|
||||
public String name;
|
||||
public String texture;
|
||||
|
||||
private DesignerType(final String name, final String texture) {
|
||||
DesignerType(final String name, final String texture) {
|
||||
this.name = name;
|
||||
this.texture = texture;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public enum ExtraTreeMachine implements IMachineType {
|
||||
|
||||
Class<? extends MachinePackage> clss;
|
||||
|
||||
private ExtraTreeMachine(final Class<? extends MachinePackage> clss) {
|
||||
ExtraTreeMachine(final Class<? extends MachinePackage> clss) {
|
||||
this.clss = clss;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user