Improve/refactoring (#15)

* Improve the code

* Code improve in binnie.core.utils package

* Code improve in binnie.core.triggers package

* Code improve in binnie.core.resource package

* Code improve in binnie.core.proxy package

* Code improve readability in binnie.core package

* Add missed constructors

* Some improve code readabilty

* Expand import with *

* Revert "Expand import with *"

This reverts commit 3bb4a44f3b69a8559bd5753337e0f6793ad18dc4.

* Fix using fully qualified names in imports

* Fix missed unnessesary "this."

* Removed binnie.craftgui package
Optimised imports and removed unnessesary "this."

* Some refactoring code in binnie.core.craftgui package

* Merge from master1.7.10

* Improve code readability in binnie.core.craftgui.database package

* Improve code readability in binnie.core.craftgui.events package

* Improve code readability in binnie.core.craftgui.geometry package

* Improve code readability in binnie.core.craftgui.* package
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-04-26 15:09:09 -07:00
1 parent a3c2360ba6
commit f402cb155f
428 files changed
+9515 -10103

No files matched your search

@@ -20,7 +20,7 @@ public class BinnieIcon extends BinnieResource {
}
public IIcon getIcon() {
return this.icon;
return icon;
}
@SideOnly(Side.CLIENT)
@@ -13,7 +13,7 @@ public class BinnieResource {
}
public BinnieResource(String modid, ResourceType type, String path) {
this.mod = modid;
mod = modid;
this.type = type;
this.path = path;
}
@@ -12,11 +12,11 @@ public class ManagerResource {
private List<BinnieIcon> icons;
public ManagerResource() {
this.icons = new ArrayList<>();
icons = new ArrayList<>();
}
public BinnieResource getPNG(AbstractMod mod, ResourceType type, String path) {
return this.getFile(mod, type, path + ".png");
return getFile(mod, type, path + ".png");
}
public BinnieResource getFile(AbstractMod mod, ResourceType type, String path) {
@@ -24,7 +24,7 @@ public class ManagerResource {
}
public void registerIcon(BinnieIcon binnieIcon) {
this.icons.add(binnieIcon);
icons.add(binnieIcon);
}
public BinnieIcon getItemIcon(AbstractMod mod, String iconFile) {
@@ -37,7 +37,7 @@ public class ManagerResource {
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister register, int type) {
for (BinnieIcon icon : this.icons) {
for (BinnieIcon icon : icons) {
if (icon.getTextureSheet() == type) {
icon.registerIcon(register);
}