Package net.minecraft.item
Class BannerItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
net.minecraft.item.BannerItem
- Mappings:
Namespace Name official adtintermediary net/minecraft/class_2673named net/minecraft/item/BannerItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced) getDisplayName(ItemStack stack) Returns the itemgroup that the item is instatic DyeColormethod_11268(ItemStack itemStack) static voidmethod_11359(ItemStack itemStack, List<String> list) static ItemStackmethod_13645(DyeColor dyeColor, NbtList nbtList) voidmethod_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) Methods inherited from class net.minecraft.item.BlockItem
getBlock, getTranslationKey, getTranslationKey, method_11269, setBlockEntityNbtMethods inherited from class net.minecraft.item.Item
addProperty, byRawId, canRepair, fromBlock, getBlockBreakingSpeed, getDefaultStack, getEnchantability, getFromId, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getUseAction, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_13649, method_3346, method_3353, method_3356, method_3359, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Constructor Details
-
BannerItem
public BannerItem()- Mappings:
Namespace Name Mixin selector official <init>Lafh;<init>()Vintermediary <init>Lnet/minecraft/class_1069;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
use
public ActionResult use(PlayerEntity player, World world, BlockPos pos, Hand hand, Direction direction, float x, float y, float z) - Overrides:
usein classBlockItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Laay;Lajs;Lco;Lri;Lcv;FFF)Lrk;intermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Lnet/minecraft/class_2962;named useLnet/minecraft/item/Item;use(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Lnet/minecraft/util/ActionResult;
-
getDisplayName
- Overrides:
getDisplayNamein classItem- Mappings:
Namespace Name Mixin selector official bLafh;b(Lafj;)Ljava/lang/String;intermediary method_3383Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Ljava/lang/String;named getDisplayNameLnet/minecraft/item/Item;getDisplayName(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-
method_11359
- Mappings:
Namespace Name Mixin selector official aLadt;a(Lafj;Ljava/util/List;)Vintermediary method_11359Lnet/minecraft/class_2673;method_11359(Lnet/minecraft/class_1071;Ljava/util/List;)Vnamed method_11359Lnet/minecraft/item/BannerItem;method_11359(Lnet/minecraft/item/ItemStack;Ljava/util/List;)V
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced) - Overrides:
appendTooltipin classBlockItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lafj;Laay;Ljava/util/List;Z)Vintermediary method_3352Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
-
method_13648
@Environment(CLIENT) public void method_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) - Overrides:
method_13648in classBlockItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lafh;Laej;Ldd;)Vintermediary method_13648Lnet/minecraft/class_1069;method_13648(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed method_13648Lnet/minecraft/item/Item;method_13648(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
method_13645
- Mappings:
Namespace Name Mixin selector official aLadt;a(Laem;Lea;)Lafj;intermediary method_13645Lnet/minecraft/class_2673;method_13645(Lnet/minecraft/class_2674;Lnet/minecraft/class_474;)Lnet/minecraft/class_1071;named method_13645Lnet/minecraft/item/BannerItem;method_13645(Lnet/minecraft/util/DyeColor;Lnet/minecraft/nbt/NbtList;)Lnet/minecraft/item/ItemStack;
-
getItemGroup
Returns the itemgroup that the item is in- Overrides:
getItemGroupin classBlockItem- Mappings:
Namespace Name Mixin selector official bLafh;b()Laej;intermediary method_3398Lnet/minecraft/class_1069;method_3398()Lnet/minecraft/class_1041;named getItemGroupLnet/minecraft/item/Item;getItemGroup()Lnet/minecraft/item/itemgroup/ItemGroup;
-
method_11268
- Mappings:
Namespace Name Mixin selector official cLadt;c(Lafj;)Laem;intermediary method_11268Lnet/minecraft/class_2673;method_11268(Lnet/minecraft/class_1071;)Lnet/minecraft/class_2674;named method_11268Lnet/minecraft/item/BannerItem;method_11268(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/DyeColor;
-