Class DyedAmethystShardItem
java.lang.Object
net.minecraft.item.Item
dev.jaxydog.astral.content.item.AstralItem
dev.jaxydog.astral.content.item.custom.DyedAmethystShardItem
- All Implemented Interfaces:
Custom,LoreHolder,Registered,Registered.Common,Registered.Generated,net.fabricmc.fabric.api.item.v1.FabricItem,net.minecraft.item.ItemConvertible,net.minecraft.resource.featuretoggle.ToggleableFeature
Defines dyed amethyst clusters.
- Since:
- 2.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
net.minecraft.item.Item.SettingsNested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> An item tag containing all amethyst shards.Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, DEFAULT_MAX_USE_TIME, ITEM_BAR_STEPSFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionDyedAmethystShardItem(String path, net.minecraft.item.Item.Settings settings, net.minecraft.util.DyeColor color) Creates a new item using the given settings.DyedAmethystShardItem(String path, net.minecraft.item.Item.Settings settings, net.minecraft.util.DyeColor color, @Nullable Supplier<net.minecraft.registry.RegistryKey<net.minecraft.item.ItemGroup>> preferredGroup) Creates a new item using the given settings. -
Method Summary
Methods inherited from class dev.jaxydog.astral.content.item.AstralItem
appendTooltip, getItemGroup, getRegistryPathMethods inherited from class net.minecraft.item.Item
asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isItemBarVisible, isNbtSynced, isNetworkSynced, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, toString, usageTick, use, useOnBlock, useOnEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.jaxydog.astral.content.item.Custom
registerCommonMethods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem
allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableForMethods inherited from interface net.minecraft.item.ItemConvertible
asItemMethods inherited from interface dev.jaxydog.astral.content.item.LoreHolder
formatLoreText, getLoreTooltipsMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId, getRegistryPathMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
AMETHYST_SHARDS
public static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> AMETHYST_SHARDSAn item tag containing all amethyst shards.- Since:
- 2.1.0
-
-
Constructor Details
-
DyedAmethystShardItem
public DyedAmethystShardItem(String path, net.minecraft.item.Item.Settings settings, net.minecraft.util.DyeColor color, @Nullable @Nullable Supplier<net.minecraft.registry.RegistryKey<net.minecraft.item.ItemGroup>> preferredGroup) Creates a new item using the given settings.If the
preferredGroupsupplier isnull, this item will not be added to any item groups.- Parameters:
path- The item's identifier path.settings- The item's settings.color- The item's dye color.preferredGroup- The item's preferred item group.- Since:
- 2.1.0
-
DyedAmethystShardItem
public DyedAmethystShardItem(String path, net.minecraft.item.Item.Settings settings, net.minecraft.util.DyeColor color) Creates a new item using the given settings.This item will be added to the default item group.
- Parameters:
path- The item's identifier path.settings- The item's settings.color- The item's dye color.- Since:
- 2.1.0
-
-
Method Details
-
getColor
public net.minecraft.util.DyeColor getColor()Returns this item's dye color.- Returns:
- The associated color.
- Since:
- 2.1.0
-
generate
public void generate()Description copied from interface:Registered.GeneratedGenerates game assets or data.It should be assumed that the contained code will only ever run on the server environment.
- Specified by:
generatein interfaceRegistered.Generated
-