-
Notifications
You must be signed in to change notification settings - Fork 1
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
8 changed files
with
44 additions
and
62 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
id 'fabric-loom' version '1.7-SNAPSHOT' | ||
id 'fabric-loom' version '1.8-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
|
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
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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
package com.lx862.mozccaps; | ||
|
||
import com.lx862.mozccaps.armor.CapModel; | ||
import com.lx862.mozccaps.network.Networking; | ||
import net.fabricmc.api.ModInitializer; | ||
import net.minecraft.item.ArmorItem; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.equipment.ArmorMaterials; | ||
import net.minecraft.item.equipment.EquipmentType; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
import net.minecraft.registry.entry.RegistryEntry; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class Main implements ModInitializer { | ||
public static final Item CAPS = new ArmorItem(RegistryEntry.of(CapModel.ARMOR_MATERIAL), ArmorItem.Type.HELMET, new Item.Settings()); | ||
public static final Item CAPS_STRAPPED = new ArmorItem(RegistryEntry.of(CapModel.ARMOR_MATERIAL), ArmorItem.Type.HELMET, new Item.Settings()); | ||
|
||
public static final RegistryKey<Item> CAPS_KEY = RegistryKey.of(RegistryKeys.ITEM, Identifier.of("mozc_caps", "caps")); | ||
public static final RegistryKey<Item> CAPS_STRAPPED_KEY = RegistryKey.of(RegistryKeys.ITEM, Identifier.of("mozc_caps", "caps_strapped")); | ||
public static final Item CAPS = Registry.register(Registries.ITEM, CAPS_KEY, new ArmorItem(ArmorMaterials.LEATHER, EquipmentType.HELMET, new Item.Settings().registryKey(CAPS_KEY).useItemPrefixedTranslationKey())); | ||
public static final Item CAPS_STRAPPED = Registry.register(Registries.ITEM, CAPS_STRAPPED_KEY, new ArmorItem(ArmorMaterials.LEATHER, EquipmentType.HELMET, new Item.Settings().registryKey(CAPS_STRAPPED_KEY).useItemPrefixedTranslationKey())); | ||
@Override | ||
public void onInitialize() { | ||
Registry.register(Registries.ARMOR_MATERIAL, Identifier.of("mozc_caps", "armor_material"), CapModel.ARMOR_MATERIAL); | ||
Registry.register(Registries.ITEM, Identifier.of("mozc_caps", "caps"), CAPS); | ||
Registry.register(Registries.ITEM, Identifier.of("mozc_caps", "caps_strapped"), CAPS_STRAPPED); | ||
|
||
Networking.registerServer(); | ||
} | ||
} |
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
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
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
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
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