Package net.minecraft.item
Class DyeItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.DyeItem
public class DyeItem extends Item
- Mappings:
Namespace Name official zeintermediary net/minecraft/class_2035named net/minecraft/item/DyeItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description static int[]COLORSFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description DyeItem() -
Method Summary
Modifier and Type Method Description voidappendItemStacks(Item item, ItemGroup group, List<ItemStack> list)Registers an item's sub itemsbooleancanUseOnEntity(ItemStack stack, PlayerEntity player, LivingEntity entity)static booleanfertilize(ItemStack stack, World world, BlockPos pos)StringgetTranslationKey(ItemStack stack)static voidspawnParticles(World world, BlockPos pos, int i)booleanuse(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)Methods 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, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient
-
Field Details
-
COLORS
public static final int[] COLORS- Mappings:
Namespace Name Mixin selector official aLze;a:[Iintermediary field_8602Lnet/minecraft/class_2035;field_8602:[Inamed COLORSLnet/minecraft/item/DyeItem;COLORS:[I
-
-
Constructor Details
-
DyeItem
public DyeItem()- Mappings:
Namespace Name Mixin selector official <init>Lzw;<init>()Vintermediary <init>Lnet/minecraft/class_2054;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
getTranslationKey
- Overrides:
getTranslationKeyin classItem- Mappings:
Namespace Name Mixin selector official e_Lzw;e_(Lzx;)Ljava/lang/String;intermediary method_8286Lnet/minecraft/class_2054;method_8286(Lnet/minecraft/class_2056;)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 aLzw;a(Lzx;Lwn;Ladm;Lcj;Lcq;FFF)Zintermediary method_8264Lnet/minecraft/class_2054;method_8264(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;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 aLze;a(Lzx;Ladm;Lcj;)Zintermediary method_8219Lnet/minecraft/class_2035;method_8219(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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 aLze;a(Ladm;Lcj;I)Vintermediary method_8218Lnet/minecraft/class_2035;method_8218(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;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 aLzw;a(Lzx;Lwn;Lpr;)Zintermediary method_8266Lnet/minecraft/class_2054;method_8266(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Lnet/minecraft/class_1752;)Znamed canUseOnEntityLnet/minecraft/item/Item;canUseOnEntity(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
appendItemStacks
@Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List<ItemStack> list)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 aLzw;a(Lzw;Lyz;Ljava/util/List;)Vintermediary method_8255Lnet/minecraft/class_2054;method_8255(Lnet/minecraft/class_2054;Lnet/minecraft/class_2029;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/ItemGroup;Ljava/util/List;)V
-