Class ClientNetworkSyncedInventory

java.lang.Object
net.minecraft.inventory.SimpleInventory
net.minecraft.inventory.ClientNetworkSyncedInventory
All Implemented Interfaces:
LockableScreenHandlerFactory, Inventory, NamedScreenHandlerFactory, Nameable

@Environment(CLIENT) public class ClientNetworkSyncedInventory extends SimpleInventory implements LockableScreenHandlerFactory
Mappings:
Namespace Name
official buh
intermediary net/minecraft/class_2393
named net/minecraft/inventory/ClientNetworkSyncedInventory
  • Field Details

    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official a Lbuh;a:Ljava/lang/String;
      intermediary field_10640 Lnet/minecraft/class_2393;field_10640:Ljava/lang/String;
      named id Lnet/minecraft/inventory/ClientNetworkSyncedInventory;id:Ljava/lang/String;
    • properties

      private final Map<Integer,Integer> properties
      Mappings:
      Namespace Name Mixin selector
      official b Lbuh;b:Ljava/util/Map;
      intermediary field_10641 Lnet/minecraft/class_2393;field_10641:Ljava/util/Map;
      named properties Lnet/minecraft/inventory/ClientNetworkSyncedInventory;properties:Ljava/util/Map;
  • Constructor Details

    • ClientNetworkSyncedInventory

      public ClientNetworkSyncedInventory(String id, Text title, int i)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbuh;<init>(Ljava/lang/String;Lhh;I)V
      intermediary <init> Lnet/minecraft/class_2393;<init>(Ljava/lang/String;Lnet/minecraft/class_1982;I)V
      named <init> Lnet/minecraft/inventory/ClientNetworkSyncedInventory;<init>(Ljava/lang/String;Lnet/minecraft/text/Text;I)V
  • Method Details

    • getProperty

      public int getProperty(int key)
      Specified by:
      getProperty in interface Inventory
      Overrides:
      getProperty in class SimpleInventory
      Mappings:
      Namespace Name Mixin selector
      official c Ltv;c(I)I
      intermediary method_10892 Lnet/minecraft/class_849;method_10892(I)I
      named getProperty Lnet/minecraft/inventory/Inventory;getProperty(I)I
    • setProperty

      public void setProperty(int id, int value)
      Specified by:
      setProperty in interface Inventory
      Overrides:
      setProperty in class SimpleInventory
      Mappings:
      Namespace Name Mixin selector
      official b Ltv;b(II)V
      intermediary method_10893 Lnet/minecraft/class_849;method_10893(II)V
      named setProperty Lnet/minecraft/inventory/Inventory;setProperty(II)V
    • getProperties

      public int getProperties()
      Specified by:
      getProperties in interface Inventory
      Overrides:
      getProperties in class SimpleInventory
      Mappings:
      Namespace Name Mixin selector
      official h Ltv;h()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • hasLock

      public boolean hasLock()
      Specified by:
      hasLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official A_ Luh;A_()Z
      intermediary method_10913 Lnet/minecraft/class_2610;method_10913()Z
      named hasLock Lnet/minecraft/block/entity/LockableScreenHandlerFactory;hasLock()Z
    • setLock

      public void setLock(ScreenHandlerLock lock)
      Specified by:
      setLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official a Luh;a(Lug;)V
      intermediary method_10911 Lnet/minecraft/class_2610;method_10911(Lnet/minecraft/class_2609;)V
      named setLock Lnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
    • getLock

      public ScreenHandlerLock getLock()
      Specified by:
      getLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official j Luh;j()Lug;
      intermediary method_10912 Lnet/minecraft/class_2610;method_10912()Lnet/minecraft/class_2609;
      named getLock Lnet/minecraft/block/entity/LockableScreenHandlerFactory;getLock()Lnet/minecraft/inventory/ScreenHandlerLock;
    • getId

      public String getId()
      Specified by:
      getId in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official l Luc;l()Ljava/lang/String;
      intermediary method_10906 Lnet/minecraft/class_2608;method_10906()Ljava/lang/String;
      named getId Lnet/minecraft/screen/NamedScreenHandlerFactory;getId()Ljava/lang/String;
    • createScreenHandler

      public ScreenHandler createScreenHandler(PlayerInventory inventory, PlayerEntity player)
      Specified by:
      createScreenHandler in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official a Luc;a(Laec;Laed;)Lafr;
      intermediary method_10905 Lnet/minecraft/class_2608;method_10905(Lnet/minecraft/class_987;Lnet/minecraft/class_988;)Lnet/minecraft/class_1002;
      named createScreenHandler Lnet/minecraft/screen/NamedScreenHandlerFactory;createScreenHandler(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;