Package net.minecraft.item
Class DyeItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.DyeItem
- Mappings:
Namespace Name official akwintermediary net/minecraft/class_1056named net/minecraft/item/DyeItem
-
Field Summary
FieldsFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List list) Registers an item's sub itemsbooleancanUseOnEntity(ItemStack stack, PlayerEntity player, LivingEntity entity) static booleangetTranslationKey(ItemStack stack) static voidspawnParticles(World world, BlockPos pos, int i) booleanMethods inherited from class net.minecraft.item.Item
appendTooltip, byRawId, canRepair, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
COLORS
public static final int[] COLORS- Mappings:
Namespace Name Mixin selector official aLakw;a:[Iintermediary field_4197Lnet/minecraft/class_1056;field_4197:[Inamed COLORSLnet/minecraft/item/DyeItem;COLORS:[I
-
-
Constructor Details
-
DyeItem
public DyeItem()- Mappings:
Namespace Name Mixin selector official <init>Lalq;<init>()Vintermediary <init>Lnet/minecraft/class_1069;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
getTranslationKey
- Overrides:
getTranslationKeyin classItem- Mappings:
Namespace Name Mixin selector official e_Lalq;e_(Lamj;)Ljava/lang/String;intermediary method_3371Lnet/minecraft/class_1069;method_3371(Lnet/minecraft/class_1071;)Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ) - Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector official aLalq;a(Lamj;Lahd;Laqu;Ldt;Lej;FFF)Zintermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFF)Znamed useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
-
fertilize
- Mappings:
Namespace Name Mixin selector official aLakw;a(Lamj;Laqu;Ldt;)Zintermediary method_11281Lnet/minecraft/class_1056;method_11281(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed fertilizeLnet/minecraft/item/DyeItem;fertilize(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
spawnParticles
- Mappings:
Namespace Name Mixin selector official aLakw;a(Laqu;Ldt;I)Vintermediary method_11280Lnet/minecraft/class_1056;method_11280(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;I)Vnamed spawnParticlesLnet/minecraft/item/DyeItem;spawnParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)V
-
canUseOnEntity
- Overrides:
canUseOnEntityin classItem- Mappings:
Namespace Name Mixin selector official aLalq;a(Lamj;Lahd;Lxm;)Zintermediary method_3353Lnet/minecraft/class_1069;method_3353(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1699;)Znamed canUseOnEntityLnet/minecraft/item/Item;canUseOnEntity(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
appendItemStacks
Registers an item's sub items- Overrides:
appendItemStacksin classItem- Parameters:
item- The Item instancegroup- The ItemGrouplist- The list of sub items- Mappings:
Namespace Name Mixin selector official aLalq;a(Lalq;Lakf;Ljava/util/List;)Vintermediary method_3345Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-