Package net.minecraft.item
Class DyeItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.DyeItem
- All Implemented Interfaces:
ItemConvertible
public class DyeItem extends Item
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
Fields Modifier and Type Field Description private DyeColorcolorprivate static Map<DyeColor,DyeItem>DYESFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group -
Constructor Summary
Constructors Constructor Description DyeItem(DyeColor color, Item.Settings settings) -
Method Summary
Modifier and Type Method Description static DyeItembyColor(DyeColor color)DyeColorgetColor()ActionResultuseOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, hasStoredInventory, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isNetworkSynced, isSuitableFor, isUsedOnRelease, method_33261, onClicked, onCraft, onStackClicked, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock
-
Field Details
-
DYES
-
color
-
-
Constructor Details
-
DyeItem
-
-
Method Details
-
useOnEntity
public ActionResult useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)- Overrides:
useOnEntityin classItem
-
getColor
-
byColor
-