类 NetworkSyncedItem
- java.lang.Object
-
- net.minecraft.item.Item
-
- net.minecraft.item.NetworkSyncedItem
-
- 所有已实现的接口:
ItemConvertible
- 直接已知子类:
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 bogintermediary net/minecraft/class_1762named net/minecraft/item/NetworkSyncedItem
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.item.Item
Item.Settings
-
-
字段概要
-
从类继承的字段 net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, field_30888, field_30889, group
-
-
构造器概要
构造器 构造器 说明 NetworkSyncedItem(Item.Settings settings)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 @Nullable Packet<?>createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.booleanisNetworkSynced()-
从类继承的方法 net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canBeNested, 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, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
-
-
-
-
构造器详细资料
-
NetworkSyncedItem
public NetworkSyncedItem(Item.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lbpn;<init>(Lbpn$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
-
-
方法详细资料
-
isNetworkSynced
public boolean isNetworkSynced()
- 覆盖:
isNetworkSynced在类中Item- Mappings:
Namespace Name Mixin selector official af_Lbpn;af_()Zintermediary method_16698Lnet/minecraft/class_1792;method_16698()Znamed isNetworkSyncedLnet/minecraft/item/Item;isNetworkSynced()Z
-
createSyncPacket
@Nullable public @Nullable Packet<?> createSyncPacket(ItemStack stack, World world, PlayerEntity player)
Creates a packet that syncs additional item data to the client.- Mappings:
Namespace Name Mixin selector official aLbog;a(Lbpr;Lbvr;Lbjf;)Lpf;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;
-
-