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.
-
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, RANDOM
-
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.boolean
isNetworkSynced()
Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
-
Constructor Details
-
NetworkSyncedItem
-
-
Method Details
-
isNetworkSynced
public boolean isNetworkSynced()- Overrides:
isNetworkSynced
in classItem
-
createSyncPacket
Creates a packet that syncs additional item data to the client.
-