Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by kadesa, Apr 18, 2017.
Removed by owner
Um, I took a look at your code,
what's the point of this?:
public Boolean GetIsCraftable = IsCraftable();
public Boolean GetIsUpgradable = IsUpgradable();
public Boolean GetIsFoundInLoot = IsFoundInLoot();
public Boolean GetIsBossDrop = IsBossDrop();
Why not just make isCraftable, etc public methods?
public variables are not loved in the OOP (Object-Oriented-Programming) Community, we like to use 'Encapsulation'. Read more about it here: https://www.tutorialspoint.com/java/java_encapsulation.htm