generated from jaredlll08/MultiLoader-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,381 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
common/src/main/java/de/griefed/addemall/item/BlockTool.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.griefed.addemall.item; | ||
|
||
import de.griefed.addemall.platform.Services; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.PickaxeItem; | ||
import net.minecraft.world.item.Tier; | ||
import net.minecraft.world.item.Tiers; | ||
|
||
public class BlockTool extends PickaxeItem { | ||
|
||
public BlockTool() { | ||
this(Tiers.NETHERITE, 12, 8f, new Item.Properties().tab(Services.PLATFORM.getCreativeTab())); | ||
} | ||
|
||
private BlockTool(Tier $$0, int $$1, float $$2, Properties $$3) { | ||
super($$0, $$1, $$2, $$3); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
common/src/main/java/de/griefed/addemall/item/ModItems.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package de.griefed.addemall.item; | ||
|
||
import de.griefed.addemall.Constants; | ||
import de.griefed.addemall.platform.Services; | ||
import de.griefed.addemall.registry.RegistrationProvider; | ||
import de.griefed.addemall.registry.RegistryObject; | ||
import net.minecraft.core.Registry; | ||
import net.minecraft.world.item.*; | ||
|
||
public class ModItems { | ||
public static final RegistrationProvider<Item> ITEMS = RegistrationProvider.get(Registry.ITEM_REGISTRY, Constants.MOD_ID); | ||
|
||
public static final RegistryObject<Item> BLOCK_TOOL = ITEMS.register("block_tool", BlockTool::new); | ||
|
||
private static Item.Properties itemBuilder() { | ||
return new Item.Properties().tab(Services.PLATFORM.getCreativeTab()); | ||
} | ||
|
||
// Called in the mod initializer / constructor in order to make sure that items are registered | ||
public static void loadClass() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.