mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-18 13:53:42 +01:00
dbfb60b809
- Tidied up and renamed Classes - Added useful tooltips to all items - Added tooltips to blueprint overlay tools - Made Schematic And Quill more bearable to use - Changed rendering order for blueprint overlay, Fixes Issue #1
52 lines
1.4 KiB
Java
52 lines
1.4 KiB
Java
package com.simibubi.create;
|
|
|
|
import com.simibubi.create.item.BlueprintItem;
|
|
import com.simibubi.create.item.BlueprintAndQuillItem;
|
|
import com.simibubi.create.item.TreeFertilizerItem;
|
|
import com.simibubi.create.item.SymmetryWandItem;
|
|
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.Item.Properties;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
import net.minecraftforge.registries.IForgeRegistry;
|
|
|
|
public enum AllItems {
|
|
|
|
TREE_FERTILIZER(new TreeFertilizerItem(standardProperties())),
|
|
SYMMETRY_WAND(new SymmetryWandItem(standardProperties())),
|
|
EMPTY_BLUEPRINT(new Item(standardProperties().maxStackSize(1))),
|
|
BLUEPRINT_AND_QUILL(new BlueprintAndQuillItem(standardProperties().maxStackSize(1))),
|
|
BLUEPRINT(new BlueprintItem(standardProperties()));
|
|
|
|
public Item item;
|
|
|
|
private AllItems(Item item) {
|
|
this.item = item;
|
|
this.item.setRegistryName(Create.ID, this.name().toLowerCase());
|
|
}
|
|
|
|
public static Properties standardProperties() {
|
|
return new Properties().group(Create.creativeTab);
|
|
}
|
|
|
|
public static void registerItems(IForgeRegistry<Item> iForgeRegistry) {
|
|
for (AllItems item : values()) {
|
|
iForgeRegistry.register(item.get());
|
|
}
|
|
}
|
|
|
|
public Item get() {
|
|
return item;
|
|
}
|
|
|
|
public boolean typeOf(ItemStack stack) {
|
|
return stack.getItem() == item;
|
|
}
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
public static void initColorHandlers() {
|
|
}
|
|
|
|
}
|