类 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 bog
    intermediary net/minecraft/class_1762
    named net/minecraft/item/NetworkSyncedItem
    • 构造器详细资料

      • NetworkSyncedItem

        public NetworkSyncedItem​(Item.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpn;<init>(Lbpn$a;)V
        intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
        named <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_()Z
        intermediary method_16698 Lnet/minecraft/class_1792;method_16698()Z
        named isNetworkSynced Lnet/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 a Lbog;a(Lbpr;Lbvr;Lbjf;)Lpf;
        intermediary method_7757 Lnet/minecraft/class_1762;method_7757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;
        named createSyncPacket Lnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/Packet;