Change how blocks/items are registered (desc)
tterrag is a meany face and yelled at me for using class.getSimpleName(). So here's an API-friendly re-work of the registration system. This allows all our Items/Blocks to be obtained via the API. Just add a new enum.
This commit is contained in:
parent
2a028414b1
commit
fdfcb5c5b7
69 changed files with 260 additions and 15 deletions
|
@ -1,6 +1,7 @@
|
|||
package WayofTime.bloodmagic.item;
|
||||
|
||||
import WayofTime.bloodmagic.api.BlockStack;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.api.ItemStackWrapper;
|
||||
|
||||
import com.google.common.collect.HashMultiset;
|
||||
|
@ -27,6 +28,7 @@ public class ItemBoundShovel extends ItemBoundTool
|
|||
public ItemBoundShovel()
|
||||
{
|
||||
super("shovel", 5, EFFECTIVE_ON);
|
||||
setRegistryName(Constants.BloodMagicItem.BOUND_SHOVEL.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue