Items and Blocks registries (WIP)

This commit is contained in:
Aleksey 2021-05-27 18:01:31 +03:00
parent 41df84404b
commit a3e781b401
34 changed files with 313 additions and 1771 deletions

View file

@ -30,8 +30,8 @@ public class ArmoredElytra extends EndArmorItem implements MultiModelItem {
public ArmoredElytra(String name, ArmorMaterial material, Item repairItem, int durability, double movementFactor, boolean fireproof) {
super(material, EquipmentSlot.CHEST, fireproof ?
EndItems.makeItemSettings().durability(durability).rarity(Rarity.EPIC).fireResistant() :
EndItems.makeItemSettings().durability(durability).rarity(Rarity.EPIC));
EndItems.makeEndItemSettings().durability(durability).rarity(Rarity.EPIC).fireResistant() :
EndItems.makeEndItemSettings().durability(durability).rarity(Rarity.EPIC));
this.wingTexture = BetterEnd.makeID("textures/entity/" + name + ".png");
this.repairItem = repairItem;
this.movementFactor = movementFactor;

View file

@ -7,10 +7,11 @@ import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.item.ItemStack;
import ru.bclib.items.BaseArmorItem;
import ru.betterend.effects.EndStatusEffects;
import ru.betterend.item.material.EndArmorMaterial;
public class CrystaliteArmor extends EndArmorItem {
public class CrystaliteArmor extends BaseArmorItem {
public final static TranslatableComponent CHEST_DESC;
public final static TranslatableComponent BOOTS_DESC;

View file

@ -22,7 +22,7 @@ import ru.betterend.registry.EndItems;
public class CrystaliteBoots extends CrystaliteArmor implements MobEffectApplier {
public CrystaliteBoots() {
super(EquipmentSlot.FEET, EndItems.makeItemSettings().rarity(Rarity.RARE));
super(EquipmentSlot.FEET, EndItems.makeEndItemSettings().rarity(Rarity.RARE));
}
@Override

View file

@ -22,7 +22,7 @@ import ru.betterend.registry.EndItems;
public class CrystaliteChestplate extends CrystaliteArmor implements MobEffectApplier {
public CrystaliteChestplate() {
super(EquipmentSlot.CHEST, EndItems.makeItemSettings().rarity(Rarity.RARE));
super(EquipmentSlot.CHEST, EndItems.makeEndItemSettings().rarity(Rarity.RARE));
}
@Override

View file

@ -11,7 +11,7 @@ import ru.betterend.registry.EndItems;
public class CrystaliteHelmet extends CrystaliteArmor {
public CrystaliteHelmet() {
super(EquipmentSlot.HEAD, EndItems.makeItemSettings().rarity(Rarity.RARE));
super(EquipmentSlot.HEAD, EndItems.makeEndItemSettings().rarity(Rarity.RARE));
UUID uuid = ARMOR_MODIFIER_UUID_PER_SLOT[EquipmentSlot.HEAD.getIndex()];
addAttributeModifier(EndAttributes.BLINDNESS_RESISTANCE, new AttributeModifier(uuid, "Helmet blindness resistance", 1.0, AttributeModifier.Operation.ADDITION));
}

View file

@ -11,7 +11,7 @@ import ru.betterend.registry.EndItems;
public class CrystaliteLeggings extends CrystaliteArmor {
public CrystaliteLeggings() {
super(EquipmentSlot.LEGS, EndItems.makeItemSettings().rarity(Rarity.RARE));
super(EquipmentSlot.LEGS, EndItems.makeEndItemSettings().rarity(Rarity.RARE));
UUID uuid = ARMOR_MODIFIER_UUID_PER_SLOT[EquipmentSlot.LEGS.getIndex()];
addAttributeModifier(Attributes.MAX_HEALTH, new AttributeModifier(uuid, "Armor health boost", 4.0, AttributeModifier.Operation.ADDITION));
}

View file

@ -9,7 +9,7 @@ import ru.betterend.registry.EndItems;
public class EnchantedPetalItem extends ModelProviderItem {
public EnchantedPetalItem() {
super(EndItems.makeItemSettings().rarity(Rarity.RARE).stacksTo(16));
super(EndItems.makeEndItemSettings().rarity(Rarity.RARE).stacksTo(16));
}
@Override

View file

@ -16,11 +16,11 @@ import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import ru.betterend.blocks.basis.EndAnvilBlock;
import ru.betterend.registry.EndItems;
import ru.betterend.registry.EndBlocks;
public class EndAnvilItem extends BlockItem {
public EndAnvilItem(Block block) {
super(block, EndItems.makeBlockItemSettings());
super(block, EndBlocks.makeBlockItemSettings());
}
@Override

View file

@ -8,6 +8,6 @@ import ru.betterend.registry.EndItems;
public class EndBucketItem extends FishBucketItem implements ItemModelProvider {
public EndBucketItem(EntityType<?> type) {
super(type, Fluids.WATER, EndItems.makeItemSettings().stacksTo(1));
super(type, Fluids.WATER, EndItems.makeEndItemSettings().stacksTo(1));
}
}

View file

@ -5,6 +5,6 @@ import ru.betterend.registry.EndItems;
public class EternalCrystalItem extends ModelProviderItem {
public EternalCrystalItem() {
super(EndItems.makeItemSettings().stacksTo(16).rarity(Rarity.EPIC));
super(EndItems.makeEndItemSettings().stacksTo(16).rarity(Rarity.EPIC));
}
}

View file

@ -20,12 +20,12 @@ import vazkii.patchouli.api.PatchouliAPI;
public class GuideBookItem extends ModelProviderItem {
public final static ResourceLocation BOOK_ID = BetterEnd.makeID("guidebook");
public static final Item GUIDE_BOOK = EndItems.registerItem(BOOK_ID, new GuideBookItem());
public static final Item GUIDE_BOOK = EndItems.registerEndItem(BOOK_ID, new GuideBookItem());
public static void register() {}
public GuideBookItem() {
super(EndItems.makeItemSettings().stacksTo(1));
super(EndItems.makeEndItemSettings().stacksTo(1));
}
@Override