From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- .../registry/FMLControlledNamespacedRegistry.html | 605 +++++++++++++++++++++ 1 file changed, 605 insertions(+) create mode 100644 javadoc/cpw/mods/fml/common/registry/FMLControlledNamespacedRegistry.html (limited to 'javadoc/cpw/mods/fml/common/registry/FMLControlledNamespacedRegistry.html') diff --git a/javadoc/cpw/mods/fml/common/registry/FMLControlledNamespacedRegistry.html b/javadoc/cpw/mods/fml/common/registry/FMLControlledNamespacedRegistry.html new file mode 100644 index 0000000..a8fb1e4 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/FMLControlledNamespacedRegistry.html @@ -0,0 +1,605 @@ + + + + + +FMLControlledNamespacedRegistry (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class FMLControlledNamespacedRegistry<I>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addObject

        +
        @Deprecated
        +public void addObject(int id,
        +                        java.lang.String name,
        +                        java.lang.Object thing)
        +
        Deprecated. register through GameRegistry instead.
        +
        Add an object to the registry, trying to use the specified id.
        +
        +
        Overrides:
        +
        addObject in class RegistryNamespaced
        +
        +
      • +
      + + + +
        +
      • +

        putObject

        +
        @Deprecated
        +public void putObject(java.lang.Object objName,
        +                        java.lang.Object obj)
        +
        Deprecated. register through GameRegistry instead.
        +
        DANGEROUS! EVIL! DO NOT USE!
        +
        +
        Specified by:
        +
        putObject in interface IRegistry
        +
        Overrides:
        +
        putObject in class RegistrySimple
        +
        +
      • +
      + + + +
        +
      • +

        getObject

        +
        public I getObject(java.lang.String name)
        +
        Fetch the object identified by the specified name or the default object. + + For blocks the default object is the air block, for items it's null.
        +
        +
        Overrides:
        +
        getObject in class RegistryNamespaced
        +
        Parameters:
        name - Unique name identifying the object.
        +
        Returns:
        Registered object of the default object if it wasn't found-
        +
      • +
      + + + +
        +
      • +

        getObjectById

        +
        public I getObjectById(int id)
        +
        Fetch the object identified by the specified id or the default object. + + For blocks the default object is the air block, for items it's null.
        +
        +
        Overrides:
        +
        getObjectById in class RegistryNamespaced
        +
        Parameters:
        id - ID identifying the object.
        +
        Returns:
        Registered object of the default object if it wasn't found-
        +
      • +
      + + + +
        +
      • +

        get

        +
        @Deprecated
        +public I get(int id)
        +
        Deprecated. use getObjectById instead
        +
      • +
      + + + +
        +
      • +

        get

        +
        @Deprecated
        +public I get(java.lang.String name)
        +
        Deprecated. use getObject instead
        +
      • +
      + + + + + +
        +
      • +

        getId

        +
        public int getId(I thing)
        +
        Get the id for the specified object. + + Don't hold onto the id across the world, it's being dynamically re-mapped as needed. + + Usually the name should be used instead of the id, if using the Block/Item object itself is + not suitable for the task.
        +
        Parameters:
        thing - Block/Item object.
        +
        Returns:
        Block/Item id or -1 if it wasn't found.
        +
      • +
      + + + +
        +
      • +

        getRaw

        +
        public I getRaw(int id)
        +
        Get the object identified by the specified id.
        +
        Parameters:
        id - Block/Item id.
        +
        Returns:
        Block/Item object or null if it wasn't found.
        +
      • +
      + + + +
        +
      • +

        getRaw

        +
        public I getRaw(java.lang.String name)
        +
        Get the object identified by the specified name.
        +
        Parameters:
        name - Block/Item name.
        +
        Returns:
        Block/Item object or null if it wasn't found.
        +
      • +
      + + + +
        +
      • +

        containsKey

        +
        public boolean containsKey(java.lang.String name)
        +
        Determine if the registry has an entry for the specified name. + + Aliased names will be resolved as well.
        +
        +
        Overrides:
        +
        containsKey in class RegistryNamespaced
        +
        Parameters:
        name - Object name to check.
        +
        Returns:
        true if a matching entry was found.
        +
      • +
      + + + +
        +
      • +

        getId

        +
        public int getId(java.lang.String itemName)
        +
        Get the id for the specified object. + + Don't hold onto the id across the world, it's being dynamically re-mapped as needed. + + Usually the name should be used instead of the id, if using the Block/Item object itself is + not suitable for the task.
        +
        Parameters:
        itemName - Block/Item registry name.
        +
        Returns:
        Block/Item id or -1 if it wasn't found.
        +
      • +
      + + + +
        +
      • +

        contains

        +
        @Deprecated
        +public boolean contains(java.lang.String itemName)
        +
        Deprecated. use containsKey instead
        +
      • +
      + + + +
        +
      • +

        typeSafeIterable

        +
        public java.lang.Iterable<I> typeSafeIterable()
        +
      • +
      + + + +
        +
      • +

        serializeInto

        +
        public void serializeInto(java.util.Map<java.lang.String,java.lang.Integer> idMapping)
        +
      • +
      + + + +
        +
      • +

        getAliases

        +
        public java.util.Map<java.lang.String,java.lang.String> getAliases()
        +
      • +
      + + + +
        +
      • +

        getDefaultValue

        +
        public I getDefaultValue()
        +
      • +
      + + + + + +
        +
      • +

        getDelegate

        +
        public RegistryDelegate<I> getDelegate(I thing,
        +                              java.lang.Class<I> clazz)
        +
      • +
      + + + +
        +
      • +

        serializeSubstitutions

        +
        public void serializeSubstitutions(java.util.Set<java.lang.String> blockSubs)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3