Interface ISlot


  • public interface ISlot
    • Method Detail

      • getId

        int getId()
        Returns:
        id of slot
      • getName

        java.lang.String getName()
        Returns:
        Name of Slot
      • setName

        void setName​(java.lang.String name)
        Parameters:
        name - - New name of slot
      • getLastLoaded

        long getLastLoaded()
        Returns:
        Last time Slot was Saved
      • setLastLoaded

        void setLastLoaded​(long time)
        Parameters:
        time - - Long time for when it was last saved
      • isTemporary

        boolean isTemporary()
        Returns:
        if the slot is temporary
      • setTemporary

        void setTemporary​(boolean temporary)
        Parameters:
        temporary - - Setting a slot to temporary won't save it to Profile
      • getComponents

        java.util.Map<java.lang.String,​net.minecraft.nbt.NBTTagCompound> getComponents()
        Returns:
        A map of all the NBTs within a slot
      • setComponentData

        void setComponentData​(java.lang.String key,
                              net.minecraft.nbt.NBTTagCompound data)
      • getComponentData

        net.minecraft.nbt.NBTTagCompound getComponentData​(java.lang.String key)
        Parameters:
        key - - The KEY of the NBT for the Slot: [CNPC+, DBC... etc]
        Returns:
        NBT for that that key
      • toNBT

        net.minecraft.nbt.NBTTagCompound toNBT()
        Returns:
        The full NBT of the Slot