Package net.minecraft.item
Class NetworkSyncedItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.NetworkSyncedItem
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
EmptyMapItem,FilledMapItem
public class NetworkSyncedItem extends Item
Represents an item which can contain extra data that is synced to the client.
- Mappings:
Namespace Name official bmlintermediary net/minecraft/class_1762named net/minecraft/item/NetworkSyncedItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group -
Constructor Summary
Constructors Constructor Description NetworkSyncedItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description Packet<?>createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.booleanisNetworkSynced()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, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
-
Constructor Details
-
NetworkSyncedItem
- Mappings:
Namespace Name Mixin selector official <init>Lbnr;<init>(Lbnr$a;)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)Vnamed <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
Method Details
-
isNetworkSynced
public boolean isNetworkSynced()- Overrides:
isNetworkSyncedin classItem- Mappings:
Namespace Name Mixin selector official ae_Lbnr;ae_()Zintermediary method_16698Lnet/minecraft/class_1792;method_16698()Znamed isNetworkSyncedLnet/minecraft/item/Item;isNetworkSynced()Z
-
createSyncPacket
Creates a packet that syncs additional item data to the client.- Mappings:
Namespace Name Mixin selector official aLbml;a(Lbnv;Lbtv;Lbhl;)Lpa;intermediary method_7757Lnet/minecraft/class_1762;method_7757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;named createSyncPacketLnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/Packet;
-