From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- .../EntityRegistry.EntityRegistration.html | 405 +++++++++++ .../mods/fml/common/registry/EntityRegistry.html | 444 ++++++++++++ .../registry/ExistingSubstitutionException.html | 250 +++++++ .../registry/FMLControlledNamespacedRegistry.html | 605 ++++++++++++++++ .../common/registry/GameData.GameDataSnapshot.html | 296 ++++++++ javadoc/cpw/mods/fml/common/registry/GameData.html | 520 ++++++++++++++ .../common/registry/GameRegistry.ObjectHolder.html | 207 ++++++ .../fml/common/registry/GameRegistry.Type.html | 334 +++++++++ .../registry/GameRegistry.UniqueIdentifier.html | 345 +++++++++ .../cpw/mods/fml/common/registry/GameRegistry.html | 781 +++++++++++++++++++++ .../registry/IEntityAdditionalSpawnData.html | 229 ++++++ .../mods/fml/common/registry/IThrowableEntity.html | 227 ++++++ .../IncompatibleSubstitutionException.html | 257 +++++++ .../mods/fml/common/registry/LanguageRegistry.html | 498 +++++++++++++ .../fml/common/registry/ObjectHolderRegistry.html | 332 +++++++++ .../common/registry/RegistryDelegate.Delegate.html | 368 ++++++++++ .../mods/fml/common/registry/RegistryDelegate.html | 271 +++++++ .../VillagerRegistry.IVillageCreationHandler.html | 265 +++++++ .../VillagerRegistry.IVillageTradeHandler.html | 219 ++++++ .../mods/fml/common/registry/VillagerRegistry.html | 525 ++++++++++++++ .../mods/fml/common/registry/package-frame.html | 49 ++ .../mods/fml/common/registry/package-summary.html | 268 +++++++ .../cpw/mods/fml/common/registry/package-tree.html | 182 +++++ 23 files changed, 7877 insertions(+) create mode 100644 javadoc/cpw/mods/fml/common/registry/EntityRegistry.EntityRegistration.html create mode 100644 javadoc/cpw/mods/fml/common/registry/EntityRegistry.html create mode 100644 javadoc/cpw/mods/fml/common/registry/ExistingSubstitutionException.html create mode 100644 javadoc/cpw/mods/fml/common/registry/FMLControlledNamespacedRegistry.html create mode 100644 javadoc/cpw/mods/fml/common/registry/GameData.GameDataSnapshot.html create mode 100644 javadoc/cpw/mods/fml/common/registry/GameData.html create mode 100644 javadoc/cpw/mods/fml/common/registry/GameRegistry.ObjectHolder.html create mode 100644 javadoc/cpw/mods/fml/common/registry/GameRegistry.Type.html create mode 100644 javadoc/cpw/mods/fml/common/registry/GameRegistry.UniqueIdentifier.html create mode 100644 javadoc/cpw/mods/fml/common/registry/GameRegistry.html create mode 100644 javadoc/cpw/mods/fml/common/registry/IEntityAdditionalSpawnData.html create mode 100644 javadoc/cpw/mods/fml/common/registry/IThrowableEntity.html create mode 100644 javadoc/cpw/mods/fml/common/registry/IncompatibleSubstitutionException.html create mode 100644 javadoc/cpw/mods/fml/common/registry/LanguageRegistry.html create mode 100644 javadoc/cpw/mods/fml/common/registry/ObjectHolderRegistry.html create mode 100644 javadoc/cpw/mods/fml/common/registry/RegistryDelegate.Delegate.html create mode 100644 javadoc/cpw/mods/fml/common/registry/RegistryDelegate.html create mode 100644 javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageCreationHandler.html create mode 100644 javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageTradeHandler.html create mode 100644 javadoc/cpw/mods/fml/common/registry/VillagerRegistry.html create mode 100644 javadoc/cpw/mods/fml/common/registry/package-frame.html create mode 100644 javadoc/cpw/mods/fml/common/registry/package-summary.html create mode 100644 javadoc/cpw/mods/fml/common/registry/package-tree.html (limited to 'javadoc/cpw/mods/fml/common/registry') diff --git a/javadoc/cpw/mods/fml/common/registry/EntityRegistry.EntityRegistration.html b/javadoc/cpw/mods/fml/common/registry/EntityRegistry.EntityRegistration.html new file mode 100644 index 0000000..bfa6541 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/EntityRegistry.EntityRegistration.html @@ -0,0 +1,405 @@ + + + + + +EntityRegistry.EntityRegistration (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class EntityRegistry.EntityRegistration

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    EntityRegistry
    +
    +
    +
    +
    public class EntityRegistry.EntityRegistration
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EntityRegistry.EntityRegistration

        +
        public EntityRegistry.EntityRegistration(ModContainer mc,
        +                                 java.lang.Class<? extends Entity> entityClass,
        +                                 java.lang.String entityName,
        +                                 int id,
        +                                 int trackingRange,
        +                                 int updateFrequency,
        +                                 boolean sendsVelocityUpdates)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getEntityClass

        +
        public java.lang.Class<? extends Entity> getEntityClass()
        +
      • +
      + + + + + + + +
        +
      • +

        getEntityName

        +
        public java.lang.String getEntityName()
        +
      • +
      + + + +
        +
      • +

        getModEntityId

        +
        public int getModEntityId()
        +
      • +
      + + + +
        +
      • +

        getTrackingRange

        +
        public int getTrackingRange()
        +
      • +
      + + + +
        +
      • +

        getUpdateFrequency

        +
        public int getUpdateFrequency()
        +
      • +
      + + + +
        +
      • +

        sendsVelocityUpdates

        +
        public boolean sendsVelocityUpdates()
        +
      • +
      + + + +
        +
      • +

        usesVanillaSpawning

        +
        public boolean usesVanillaSpawning()
        +
      • +
      + + + +
        +
      • +

        hasCustomSpawning

        +
        public boolean hasCustomSpawning()
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/EntityRegistry.html b/javadoc/cpw/mods/fml/common/registry/EntityRegistry.html new file mode 100644 index 0000000..a179e9d --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/EntityRegistry.html @@ -0,0 +1,444 @@ + + + + + +EntityRegistry (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class EntityRegistry

+
+
+ +
+
    +
  • +
    +
    +
    public class EntityRegistry
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        registerModEntity

        +
        public static void registerModEntity(java.lang.Class<? extends Entity> entityClass,
        +                     java.lang.String entityName,
        +                     int id,
        +                     java.lang.Object mod,
        +                     int trackingRange,
        +                     int updateFrequency,
        +                     boolean sendsVelocityUpdates)
        +
        Register the mod entity type with FML
        +
        Parameters:
        entityClass - The entity class
        entityName - A unique name for the entity
        id - A mod specific ID for the entity
        mod - The mod
        trackingRange - The range at which MC will send tracking updates
        updateFrequency - The frequency of tracking updates
        sendsVelocityUpdates - Whether to send velocity information packets as well
        +
      • +
      + + + +
        +
      • +

        registerGlobalEntityID

        +
        public static void registerGlobalEntityID(java.lang.Class<? extends Entity> entityClass,
        +                          java.lang.String entityName,
        +                          int id)
        +
      • +
      + + + +
        +
      • +

        registerGlobalEntityID

        +
        public static void registerGlobalEntityID(java.lang.Class<? extends Entity> entityClass,
        +                          java.lang.String entityName,
        +                          int id,
        +                          int backgroundEggColour,
        +                          int foregroundEggColour)
        +
      • +
      + + + +
        +
      • +

        addSpawn

        +
        public static void addSpawn(java.lang.Class<? extends EntityLiving> entityClass,
        +            int weightedProb,
        +            int min,
        +            int max,
        +            EnumCreatureType typeOfCreature,
        +            BiomeGenBase... biomes)
        +
      • +
      + + + +
        +
      • +

        addSpawn

        +
        public static void addSpawn(java.lang.String entityName,
        +            int weightedProb,
        +            int min,
        +            int max,
        +            EnumCreatureType spawnList,
        +            BiomeGenBase... biomes)
        +
      • +
      + + + + + + + +
        +
      • +

        removeSpawn

        +
        public static void removeSpawn(java.lang.String entityName,
        +               EnumCreatureType spawnList,
        +               BiomeGenBase... biomes)
        +
      • +
      + + + +
        +
      • +

        findGlobalUniqueEntityId

        +
        public static int findGlobalUniqueEntityId()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        tryTrackingEntity

        +
        public boolean tryTrackingEntity(EntityTracker entityTracker,
        +                        Entity entity)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/ExistingSubstitutionException.html b/javadoc/cpw/mods/fml/common/registry/ExistingSubstitutionException.html new file mode 100644 index 0000000..a34ce23 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/ExistingSubstitutionException.html @@ -0,0 +1,250 @@ + + + + + +ExistingSubstitutionException (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class ExistingSubstitutionException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class ExistingSubstitutionException
    +extends java.lang.Exception
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ExistingSubstitutionException(java.lang.String fromName, + java.lang.Object toReplace) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExistingSubstitutionException

        +
        public ExistingSubstitutionException(java.lang.String fromName,
        +                             java.lang.Object toReplace)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + 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)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/GameData.GameDataSnapshot.html b/javadoc/cpw/mods/fml/common/registry/GameData.GameDataSnapshot.html new file mode 100644 index 0000000..3a63025 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/GameData.GameDataSnapshot.html @@ -0,0 +1,296 @@ + + + + + +GameData.GameDataSnapshot (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class GameData.GameDataSnapshot

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    GameData
    +
    +
    +
    +
    public static class GameData.GameDataSnapshot
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.Set<java.lang.String>blockSubstitutions 
      java.util.Map<java.lang.String,java.lang.Integer>idMap 
      java.util.Set<java.lang.String>itemSubstitutions 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GameData.GameDataSnapshot(java.util.Map<java.lang.String,java.lang.Integer> idMap, + java.util.Set<java.lang.String> blockSubstitutions, + java.util.Set<java.lang.String> itemSubstitutions) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        idMap

        +
        public final java.util.Map<java.lang.String,java.lang.Integer> idMap
        +
      • +
      + + + +
        +
      • +

        blockSubstitutions

        +
        public final java.util.Set<java.lang.String> blockSubstitutions
        +
      • +
      + + + +
        +
      • +

        itemSubstitutions

        +
        public final java.util.Set<java.lang.String> itemSubstitutions
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GameData.GameDataSnapshot

        +
        public GameData.GameDataSnapshot(java.util.Map<java.lang.String,java.lang.Integer> idMap,
        +                         java.util.Set<java.lang.String> blockSubstitutions,
        +                         java.util.Set<java.lang.String> itemSubstitutions)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/GameData.html b/javadoc/cpw/mods/fml/common/registry/GameData.html new file mode 100644 index 0000000..3e0dd75 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/GameData.html @@ -0,0 +1,520 @@ + + + + + +GameData (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class GameData

+
+
+ +
+
    +
  • +
    +
    +
    public class GameData
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

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

        findModOwner

        +
        @Deprecated
        +public static ModContainer findModOwner(java.lang.String string)
        +
        Deprecated. no replacement planned
        +
      • +
      + + + + + + + +
        +
      • +

        getBlockedIds

        +
        public static int[] getBlockedIds()
        +
      • +
      + + + +
        +
      • +

        dumpRegistry

        +
        public static void dumpRegistry(java.io.File minecraftDir)
        +
      • +
      + + + +
        +
      • +

        fixBrokenIds

        +
        public static void fixBrokenIds(java.util.Map<java.lang.String,java.lang.Integer> dataList,
        +                java.util.Set<java.lang.Integer> blockedIds)
        +
        Fix IDs improperly allocated by early versions of the registry, best-effort. + + Items sharing the same ID with a block, but not sharing the same registry name will be + mapped to an unused id. Losing items instead of blocks should minimize the damage.
        +
        Parameters:
        dataList - List containing the IDs to fix
        +
      • +
      + + + +
        +
      • +

        injectWorldIDMap

        +
        public static java.util.List<java.lang.String> injectWorldIDMap(java.util.Map<java.lang.String,java.lang.Integer> dataList,
        +                                                java.util.Set<java.lang.String> blockSubstitutions,
        +                                                java.util.Set<java.lang.String> itemSubstitutions,
        +                                                boolean injectFrozenData,
        +                                                boolean isLocalWorld)
        +
      • +
      + + + +
        +
      • +

        injectWorldIDMap

        +
        public static java.util.List<java.lang.String> injectWorldIDMap(java.util.Map<java.lang.String,java.lang.Integer> dataList,
        +                                                java.util.Set<java.lang.Integer> blockedIds,
        +                                                java.util.Map<java.lang.String,java.lang.String> blockAliases,
        +                                                java.util.Map<java.lang.String,java.lang.String> itemAliases,
        +                                                java.util.Set<java.lang.String> blockSubstitutions,
        +                                                java.util.Set<java.lang.String> itemSubstitutions,
        +                                                boolean injectFrozenData,
        +                                                boolean isLocalWorld)
        +
      • +
      + + + +
        +
      • +

        processIdRematches

        +
        public static java.util.List<java.lang.String> processIdRematches(java.lang.Iterable<FMLMissingMappingsEvent.MissingMapping> missedMappings,
        +                                                  boolean isLocalWorld,
        +                                                  GameData gameData,
        +                                                  java.util.Map<java.lang.String,java.lang.Integer[]> remaps)
        +
      • +
      + + + +
        +
      • +

        freezeData

        +
        public static void freezeData()
        +
      • +
      + + + +
        +
      • +

        revertToFrozen

        +
        public static void revertToFrozen()
        +
      • +
      + + + + + + + +
        +
      • +

        getMain

        +
        protected static GameData getMain()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/GameRegistry.ObjectHolder.html b/javadoc/cpw/mods/fml/common/registry/GameRegistry.ObjectHolder.html new file mode 100644 index 0000000..cdbe8bb --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/GameRegistry.ObjectHolder.html @@ -0,0 +1,207 @@ + + + + + +GameRegistry.ObjectHolder (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Annotation Type GameRegistry.ObjectHolder

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=RUNTIME)
    +@Target(value={TYPE,FIELD})
    +public static @interface GameRegistry.ObjectHolder
    +
    This will cause runtime injection of public static final fields to occur at various points + where mod blocks and items could be subject to change. This allows for dynamic + substitution to occur.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Required Element Summary

      + + + + + + + + + + +
      Required Elements 
      Modifier and TypeRequired Element and Description
      java.lang.Stringvalue +
      If used on a class, this represents a modid only.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Element Detail

      + + + +
        +
      • +

        value

        +
        public abstract java.lang.String value
        +
        If used on a class, this represents a modid only. + If used on a field, it represents a name, which can be abbreviated or complete. + Abbreviated names derive their modid from an enclosing ObjectHolder at the class level.
        +
        Returns:
        either a modid or a name based on the rules above
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/GameRegistry.Type.html b/javadoc/cpw/mods/fml/common/registry/GameRegistry.Type.html new file mode 100644 index 0000000..8e20eb0 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/GameRegistry.Type.html @@ -0,0 +1,334 @@ + + + + + +GameRegistry.Type (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Enum GameRegistry.Type

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

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      BLOCK 
      ITEM 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      abstract FMLControlledNamespacedRegistry<?>getRegistry() 
      static GameRegistry.TypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static GameRegistry.Type[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static GameRegistry.Type[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (GameRegistry.Type c : GameRegistry.Type.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static GameRegistry.Type valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/GameRegistry.UniqueIdentifier.html b/javadoc/cpw/mods/fml/common/registry/GameRegistry.UniqueIdentifier.html new file mode 100644 index 0000000..7650b6e --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/GameRegistry.UniqueIdentifier.html @@ -0,0 +1,345 @@ + + + + + +GameRegistry.UniqueIdentifier (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class GameRegistry.UniqueIdentifier

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    GameRegistry
    +
    +
    +
    +
    public static final class GameRegistry.UniqueIdentifier
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.StringmodId 
      java.lang.Stringname 
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      inthashCode() 
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        modId

        +
        public final java.lang.String modId
        +
      • +
      + + + +
        +
      • +

        name

        +
        public final java.lang.String name
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GameRegistry.UniqueIdentifier

        +
        public GameRegistry.UniqueIdentifier(java.lang.String string)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/GameRegistry.html b/javadoc/cpw/mods/fml/common/registry/GameRegistry.html new file mode 100644 index 0000000..03e8e8a --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/GameRegistry.html @@ -0,0 +1,781 @@ + + + + + +GameRegistry (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class GameRegistry

+
+
+ +
+
    +
  • +
    +
    +
    public class GameRegistry
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface GameRegistry.ObjectHolder +
      This will cause runtime injection of public static final fields to occur at various points + where mod blocks and items could be subject to change.
      +
      static class GameRegistry.Type 
      static class GameRegistry.UniqueIdentifier 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GameRegistry() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static voidaddRecipe(IRecipe recipe) 
      static voidaddRecipe(ItemStack output, + java.lang.Object... params) 
      static IRecipeaddShapedRecipe(ItemStack output, + java.lang.Object... params) 
      static voidaddShapelessRecipe(ItemStack output, + java.lang.Object... params) 
      static voidaddSmelting(Block input, + ItemStack output, + float xp) 
      static voidaddSmelting(Item input, + ItemStack output, + float xp) 
      static voidaddSmelting(ItemStack input, + ItemStack output, + float xp) 
      static voidaddSubstitutionAlias(java.lang.String nameToSubstitute, + GameRegistry.Type type, + java.lang.Object object) +
      Add a forced persistent substitution alias for the block or item to another block or item.
      +
      static BlockfindBlock(java.lang.String modId, + java.lang.String name) +
      Look up a mod block in the global "named item list"
      +
      static ItemfindItem(java.lang.String modId, + java.lang.String name) +
      Look up a mod item in the global "named item list"
      +
      static ItemStackfindItemStack(java.lang.String modId, + java.lang.String name, + int stackSize) +
      Lookup an itemstack based on mod and name.
      +
      static GameRegistry.UniqueIdentifierfindUniqueIdentifierFor(Block block) +
      Look up the mod identifier data for a block.
      +
      static GameRegistry.UniqueIdentifierfindUniqueIdentifierFor(Item item) +
      Look up the mod identifier data for an item.
      +
      static voidgenerateWorld(int chunkX, + int chunkZ, + World world, + IChunkProvider chunkGenerator, + IChunkProvider chunkProvider) +
      Callback hook for world gen - if your mod wishes to add extra mod related generation to the world + call this
      +
      static intgetFuelValue(ItemStack itemStack) 
      static BlockregisterBlock(Block block, + java.lang.Class<? extends ItemBlock> itemclass, + java.lang.String name) +
      Register a block with the world, with the specified item class and block name
      +
      static BlockregisterBlock(Block block, + java.lang.Class<? extends ItemBlock> itemclass, + java.lang.String name, + java.lang.Object... itemCtorArgs) +
      Register a block with the world, with the specified item class, block name and owning modId
      +
      static BlockregisterBlock(Block block, + java.lang.Class<? extends ItemBlock> itemclass, + java.lang.String name, + java.lang.String modId, + java.lang.Object... itemCtorArgs) +
      Deprecated.  +
      Use the registerBlock version without the modId parameter instead.
      +
      +
      static BlockregisterBlock(Block block, + java.lang.String name) +
      Register a block with the specified mod specific name
      +
      static voidregisterCustomItemStack(java.lang.String name, + ItemStack itemStack) +
      Manually register a custom item stack with FML for later tracking.
      +
      static voidregisterFuelHandler(IFuelHandler handler) 
      static voidregisterItem(Item item, + java.lang.String name) +
      Register an item with the item registry with a custom name : this allows for easier server->client resolution
      +
      static ItemregisterItem(Item item, + java.lang.String name, + java.lang.String modId) +
      Register the specified Item with a mod specific name : overrides the standard type based name
      +
      static voidregisterTileEntity(java.lang.Class<? extends TileEntity> tileEntityClass, + java.lang.String id) 
      static voidregisterTileEntityWithAlternatives(java.lang.Class<? extends TileEntity> tileEntityClass, + java.lang.String id, + java.lang.String... alternatives) +
      Register a tile entity, with alternative TileEntity identifiers.
      +
      static voidregisterWorldGenerator(IWorldGenerator generator, + int modGenerationWeight) +
      Register a world generator - something that inserts new block types into the world
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GameRegistry

        +
        public GameRegistry()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        registerWorldGenerator

        +
        public static void registerWorldGenerator(IWorldGenerator generator,
        +                          int modGenerationWeight)
        +
        Register a world generator - something that inserts new block types into the world
        +
        Parameters:
        generator - the generator
        modGenerationWeight - a weight to assign to this generator. Heavy weights tend to sink to the bottom of + list of world generators (i.e. they run later)
        +
      • +
      + + + +
        +
      • +

        generateWorld

        +
        public static void generateWorld(int chunkX,
        +                 int chunkZ,
        +                 World world,
        +                 IChunkProvider chunkGenerator,
        +                 IChunkProvider chunkProvider)
        +
        Callback hook for world gen - if your mod wishes to add extra mod related generation to the world + call this
        +
        Parameters:
        chunkX -
        chunkZ -
        world -
        chunkGenerator -
        chunkProvider -
        +
      • +
      + + + +
        +
      • +

        registerItem

        +
        public static void registerItem(Item item,
        +                java.lang.String name)
        +
        Register an item with the item registry with a custom name : this allows for easier server->client resolution
        +
        Parameters:
        item - The item to register
        name - The mod-unique name of the item
        +
      • +
      + + + +
        +
      • +

        registerItem

        +
        public static Item registerItem(Item item,
        +                java.lang.String name,
        +                java.lang.String modId)
        +
        Register the specified Item with a mod specific name : overrides the standard type based name
        +
        Parameters:
        item - The item to register
        name - The mod-unique name to register it as - null will remove a custom name
        modId - deprecated, unused + where one mod should "own" all the blocks of all the mods, null defaults to the active mod
        +
      • +
      + + + +
        +
      • +

        addSubstitutionAlias

        +
        public static void addSubstitutionAlias(java.lang.String nameToSubstitute,
        +                        GameRegistry.Type type,
        +                        java.lang.Object object)
        +                                 throws ExistingSubstitutionException
        +
        Add a forced persistent substitution alias for the block or item to another block or item. This will have + the effect of using the substituted block or item instead of the original, where ever it is + referenced.
        +
        Parameters:
        nameToSubstitute - The name to link to (this is the NEW block or item)
        type - The type (Block or Item)
        object - a NEW instance that is type compatible with the existing instance
        +
        Throws:
        +
        ExistingSubstitutionException - if someone else has already registered an alias either from or to one of the names
        +
        IncompatibleSubstitutionException - if the substitution is incompatible
        +
      • +
      + + + +
        +
      • +

        registerBlock

        +
        public static Block registerBlock(Block block,
        +                  java.lang.String name)
        +
        Register a block with the specified mod specific name
        +
        Parameters:
        block - The block to register
        name - The mod-unique name to register it as, will get prefixed by your modid.
        +
      • +
      + + + +
        +
      • +

        registerBlock

        +
        public static Block registerBlock(Block block,
        +                  java.lang.Class<? extends ItemBlock> itemclass,
        +                  java.lang.String name)
        +
        Register a block with the world, with the specified item class and block name
        +
        Parameters:
        block - The block to register
        itemclass - The item type to register with it : null registers a block without associated item.
        name - The mod-unique name to register it as, will get prefixed by your modid.
        +
      • +
      + + + +
        +
      • +

        registerBlock

        +
        @Deprecated
        +public static Block registerBlock(Block block,
        +                             java.lang.Class<? extends ItemBlock> itemclass,
        +                             java.lang.String name,
        +                             java.lang.String modId,
        +                             java.lang.Object... itemCtorArgs)
        +
        Deprecated. Use the registerBlock version without the modId parameter instead.
        +
      • +
      + + + +
        +
      • +

        registerBlock

        +
        public static Block registerBlock(Block block,
        +                  java.lang.Class<? extends ItemBlock> itemclass,
        +                  java.lang.String name,
        +                  java.lang.Object... itemCtorArgs)
        +
        Register a block with the world, with the specified item class, block name and owning modId
        +
        Parameters:
        block - The block to register
        itemclass - The item type to register with it : null registers a block without associated item.
        name - The mod-unique name to register it as, will get prefixed by your modid.
        itemCtorArgs - Arguments to pass to the ItemBlock constructor (optional).
        +
      • +
      + + + +
        +
      • +

        addRecipe

        +
        public static void addRecipe(ItemStack output,
        +             java.lang.Object... params)
        +
      • +
      + + + +
        +
      • +

        addShapedRecipe

        +
        public static IRecipe addShapedRecipe(ItemStack output,
        +                      java.lang.Object... params)
        +
      • +
      + + + +
        +
      • +

        addShapelessRecipe

        +
        public static void addShapelessRecipe(ItemStack output,
        +                      java.lang.Object... params)
        +
      • +
      + + + +
        +
      • +

        addRecipe

        +
        public static void addRecipe(IRecipe recipe)
        +
      • +
      + + + +
        +
      • +

        addSmelting

        +
        public static void addSmelting(Block input,
        +               ItemStack output,
        +               float xp)
        +
      • +
      + + + +
        +
      • +

        addSmelting

        +
        public static void addSmelting(Item input,
        +               ItemStack output,
        +               float xp)
        +
      • +
      + + + +
        +
      • +

        addSmelting

        +
        public static void addSmelting(ItemStack input,
        +               ItemStack output,
        +               float xp)
        +
      • +
      + + + +
        +
      • +

        registerTileEntity

        +
        public static void registerTileEntity(java.lang.Class<? extends TileEntity> tileEntityClass,
        +                      java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        registerTileEntityWithAlternatives

        +
        public static void registerTileEntityWithAlternatives(java.lang.Class<? extends TileEntity> tileEntityClass,
        +                                      java.lang.String id,
        +                                      java.lang.String... alternatives)
        +
        Register a tile entity, with alternative TileEntity identifiers. Use with caution! + This method allows for you to "rename" the 'id' of the tile entity.
        +
        Parameters:
        tileEntityClass - The tileEntity class to register
        id - The primary ID, this will be the ID that the tileentity saves as
        alternatives - A list of alternative IDs that will also map to this class. These will never save, but they will load
        +
      • +
      + + + +
        +
      • +

        registerFuelHandler

        +
        public static void registerFuelHandler(IFuelHandler handler)
        +
      • +
      + + + +
        +
      • +

        getFuelValue

        +
        public static int getFuelValue(ItemStack itemStack)
        +
      • +
      + + + +
        +
      • +

        findBlock

        +
        public static Block findBlock(java.lang.String modId,
        +              java.lang.String name)
        +
        Look up a mod block in the global "named item list"
        +
        Parameters:
        modId - The modid owning the block
        name - The name of the block itself
        +
        Returns:
        The block or null if not found
        +
      • +
      + + + +
        +
      • +

        findItem

        +
        public static Item findItem(java.lang.String modId,
        +            java.lang.String name)
        +
        Look up a mod item in the global "named item list"
        +
        Parameters:
        modId - The modid owning the item
        name - The name of the item itself
        +
        Returns:
        The item or null if not found
        +
      • +
      + + + +
        +
      • +

        registerCustomItemStack

        +
        public static void registerCustomItemStack(java.lang.String name,
        +                           ItemStack itemStack)
        +
        Manually register a custom item stack with FML for later tracking. It is automatically scoped with the active modid
        +
        Parameters:
        name - The name to register it under
        itemStack - The itemstack to register
        +
      • +
      + + + +
        +
      • +

        findItemStack

        +
        public static ItemStack findItemStack(java.lang.String modId,
        +                      java.lang.String name,
        +                      int stackSize)
        +
        Lookup an itemstack based on mod and name. It will create "default" itemstacks from blocks and items if no + explicit itemstack is found. + + If it is built from a block, the metadata is by default the "wildcard" value. + + Custom itemstacks can be dumped from minecraft by setting the system property fml.dumpRegistry to true + (-Dfml.dumpRegistry=true on the command line will work)
        +
        Parameters:
        modId - The modid of the stack owner
        name - The name of the stack
        stackSize - The size of the stack returned
        +
        Returns:
        The custom itemstack or null if no such itemstack was found
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/IEntityAdditionalSpawnData.html b/javadoc/cpw/mods/fml/common/registry/IEntityAdditionalSpawnData.html new file mode 100644 index 0000000..5c947c2 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/IEntityAdditionalSpawnData.html @@ -0,0 +1,229 @@ + + + + + +IEntityAdditionalSpawnData (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Interface IEntityAdditionalSpawnData

+
+
+
+
    +
  • +
    +
    +
    public interface IEntityAdditionalSpawnData
    +
    A interface for Entities that need extra information to be communicated + between the server and client when they are spawned.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidreadSpawnData(io.netty.buffer.ByteBuf additionalData) +
      Called by the client when it receives a Entity spawn packet.
      +
      voidwriteSpawnData(io.netty.buffer.ByteBuf buffer) +
      Called by the server when constructing the spawn packet.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        writeSpawnData

        +
        void writeSpawnData(io.netty.buffer.ByteBuf buffer)
        +
        Called by the server when constructing the spawn packet. + Data should be added to the provided stream.
        +
        Parameters:
        buffer - The packet data stream
        +
      • +
      + + + +
        +
      • +

        readSpawnData

        +
        void readSpawnData(io.netty.buffer.ByteBuf additionalData)
        +
        Called by the client when it receives a Entity spawn packet. + Data should be read out of the stream in the same way as it was written.
        +
        Parameters:
        data - The packet data stream
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/IThrowableEntity.html b/javadoc/cpw/mods/fml/common/registry/IThrowableEntity.html new file mode 100644 index 0000000..f7a191f --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/IThrowableEntity.html @@ -0,0 +1,227 @@ + + + + + +IThrowableEntity (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Interface IThrowableEntity

+
+
+
+
    +
  • +
    +
    +
    public interface IThrowableEntity
    +
    This interface should be implemented by an Entity that can be 'thrown', like snowballs. + This was created to mimic ModLoaderMP's 'owner' functionality.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EntitygetThrower() +
      Gets the entity that threw/created this entity.
      +
      voidsetThrower(Entity entity) +
      Sets the entity that threw/created this entity.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getThrower

        +
        Entity getThrower()
        +
        Gets the entity that threw/created this entity.
        +
        Returns:
        The owner instance, Null if none.
        +
      • +
      + + + +
        +
      • +

        setThrower

        +
        void setThrower(Entity entity)
        +
        Sets the entity that threw/created this entity.
        +
        Parameters:
        entity - The new thrower/creator.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/IncompatibleSubstitutionException.html b/javadoc/cpw/mods/fml/common/registry/IncompatibleSubstitutionException.html new file mode 100644 index 0000000..af182e0 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/IncompatibleSubstitutionException.html @@ -0,0 +1,257 @@ + + + + + +IncompatibleSubstitutionException (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class IncompatibleSubstitutionException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class IncompatibleSubstitutionException
    +extends java.lang.RuntimeException
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      IncompatibleSubstitutionException(java.lang.String fromName, + java.lang.Object replacement, + java.lang.Object original) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IncompatibleSubstitutionException

        +
        public IncompatibleSubstitutionException(java.lang.String fromName,
        +                                 java.lang.Object replacement,
        +                                 java.lang.Object original)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/LanguageRegistry.html b/javadoc/cpw/mods/fml/common/registry/LanguageRegistry.html new file mode 100644 index 0000000..ab631ff --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/LanguageRegistry.html @@ -0,0 +1,498 @@ + + + + + +LanguageRegistry (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class LanguageRegistry

+
+
+ +
+
    +
  • +
    +
    +
    public class LanguageRegistry
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LanguageRegistry() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static voidaddName(java.lang.Object objectToName, + java.lang.String name) +
      Deprecated. 
      +
      voidaddNameForObject(java.lang.Object objectToName, + java.lang.String lang, + java.lang.String name) +
      Deprecated. 
      +
      voidaddStringLocalization(java.util.Properties langPackAdditions) +
      Deprecated. 
      +
      voidaddStringLocalization(java.util.Properties langPackAdditions, + java.lang.String lang) +
      Deprecated. 
      +
      voidaddStringLocalization(java.lang.String key, + java.lang.String value) +
      Deprecated. 
      +
      voidaddStringLocalization(java.lang.String key, + java.lang.String lang, + java.lang.String value) +
      Deprecated. 
      +
      java.lang.StringgetStringLocalization(java.lang.String key) 
      java.lang.StringgetStringLocalization(java.lang.String key, + java.lang.String lang) 
      voidinjectLanguage(java.lang.String language, + java.util.HashMap<java.lang.String,java.lang.String> parsedLangFile) 
      static LanguageRegistryinstance() 
      voidloadLanguagesFor(ModContainer container, + Side side) 
      voidloadLocalization(java.lang.String localizationFile, + java.lang.String lang, + boolean isXML) +
      Deprecated. 
      +
      voidloadLocalization(java.net.URL localizationFile, + java.lang.String lang, + boolean isXML) +
      Deprecated. 
      +
      voidmergeLanguageTable(java.util.Map field_135032_a, + java.lang.String lang) +
      Deprecated. 
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LanguageRegistry

        +
        public LanguageRegistry()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getStringLocalization

        +
        public java.lang.String getStringLocalization(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        getStringLocalization

        +
        public java.lang.String getStringLocalization(java.lang.String key,
        +                                     java.lang.String lang)
        +
      • +
      + + + +
        +
      • +

        addStringLocalization

        +
        @Deprecated
        +public void addStringLocalization(java.lang.String key,
        +                                    java.lang.String value)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        addStringLocalization

        +
        @Deprecated
        +public void addStringLocalization(java.lang.String key,
        +                                    java.lang.String lang,
        +                                    java.lang.String value)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        addStringLocalization

        +
        @Deprecated
        +public void addStringLocalization(java.util.Properties langPackAdditions)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        addStringLocalization

        +
        @Deprecated
        +public void addStringLocalization(java.util.Properties langPackAdditions,
        +                                    java.lang.String lang)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        addNameForObject

        +
        @Deprecated
        +public void addNameForObject(java.lang.Object objectToName,
        +                               java.lang.String lang,
        +                               java.lang.String name)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        addName

        +
        @Deprecated
        +public static void addName(java.lang.Object objectToName,
        +                      java.lang.String name)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        mergeLanguageTable

        +
        @Deprecated
        +public void mergeLanguageTable(java.util.Map field_135032_a,
        +                                 java.lang.String lang)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        loadLocalization

        +
        @Deprecated
        +public void loadLocalization(java.lang.String localizationFile,
        +                               java.lang.String lang,
        +                               boolean isXML)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        loadLocalization

        +
        @Deprecated
        +public void loadLocalization(java.net.URL localizationFile,
        +                               java.lang.String lang,
        +                               boolean isXML)
        +
        Deprecated. 
        +
        Deprecated for removal in 1.8. Use the assets lang system
        +
      • +
      + + + +
        +
      • +

        injectLanguage

        +
        public void injectLanguage(java.lang.String language,
        +                  java.util.HashMap<java.lang.String,java.lang.String> parsedLangFile)
        +
      • +
      + + + +
        +
      • +

        loadLanguagesFor

        +
        public void loadLanguagesFor(ModContainer container,
        +                    Side side)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/ObjectHolderRegistry.html b/javadoc/cpw/mods/fml/common/registry/ObjectHolderRegistry.html new file mode 100644 index 0000000..32131ac --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/ObjectHolderRegistry.html @@ -0,0 +1,332 @@ + + + + + +ObjectHolderRegistry (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Enum ObjectHolderRegistry

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

      Enum Constant Summary

      + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      INSTANCE 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidapplyObjectHolders() 
      voidfindObjectHolders(ASMDataTable table) 
      static ObjectHolderRegistryvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ObjectHolderRegistry[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ObjectHolderRegistry[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ObjectHolderRegistry c : ObjectHolderRegistry.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ObjectHolderRegistry valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
      • +
      + + + +
        +
      • +

        findObjectHolders

        +
        public void findObjectHolders(ASMDataTable table)
        +
      • +
      + + + +
        +
      • +

        applyObjectHolders

        +
        public void applyObjectHolders()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/RegistryDelegate.Delegate.html b/javadoc/cpw/mods/fml/common/registry/RegistryDelegate.Delegate.html new file mode 100644 index 0000000..1a34fab --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/RegistryDelegate.Delegate.html @@ -0,0 +1,368 @@ + + + + + +RegistryDelegate.Delegate (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class RegistryDelegate.Delegate<T>

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

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      RegistryDelegate.Delegate(T referant, + java.lang.Class<T> type) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      Tget() +
      Get the referent pointed at by this delegate.
      +
      inthashCode() 
      java.lang.Stringname() +
      Get the name of this delegate.
      +
      java.lang.Class<T>type() +
      Get the delegate type.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        RegistryDelegate.Delegate

        +
        public RegistryDelegate.Delegate(T referant,
        +                         java.lang.Class<T> type)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public T get()
        +
        Description copied from interface: RegistryDelegate
        +
        Get the referent pointed at by this delegate. This will be the currently active item or block, and will change + as world saves come and go. Note that item.delegate.get() may NOT be the same object as item, due to item and + block substitution.
        +
        +
        Specified by:
        +
        get in interface RegistryDelegate<T>
        +
        Returns:
        The referred object
        +
      • +
      + + + +
        +
      • +

        name

        +
        public java.lang.String name()
        +
        Description copied from interface: RegistryDelegate
        +
        Get the name of this delegate. This is completely static after registration has completed and will never change.
        +
        +
        Specified by:
        +
        name in interface RegistryDelegate<T>
        +
        Returns:
        The name
        +
      • +
      + + + +
        +
      • +

        type

        +
        public java.lang.Class<T> type()
        +
        Description copied from interface: RegistryDelegate
        +
        Get the delegate type. It will be Item or Block.
        +
        +
        Specified by:
        +
        type in interface RegistryDelegate<T>
        +
        Returns:
        The type of delegate
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/RegistryDelegate.html b/javadoc/cpw/mods/fml/common/registry/RegistryDelegate.html new file mode 100644 index 0000000..0ca12ec --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/RegistryDelegate.html @@ -0,0 +1,271 @@ + + + + + +RegistryDelegate (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Interface RegistryDelegate<T>

+
+
+
+
    +
  • +
    Type Parameters:
    T - the type of thing we're holding onto
    +
    +
    All Known Implementing Classes:
    +
    RegistryDelegate.Delegate
    +
    +
    +
    +
    public interface RegistryDelegate<T>
    +
    A registry delegate for holding references to items or blocks + These should be safe to use in things like lists though aliased items and blocks will not + have object identity with respect to their delegate.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static class RegistryDelegate.Delegate<T> 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Tget() +
      Get the referent pointed at by this delegate.
      +
      java.lang.Stringname() +
      Get the name of this delegate.
      +
      java.lang.Class<T>type() +
      Get the delegate type.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        T get()
        +
        Get the referent pointed at by this delegate. This will be the currently active item or block, and will change + as world saves come and go. Note that item.delegate.get() may NOT be the same object as item, due to item and + block substitution.
        +
        Returns:
        The referred object
        +
      • +
      + + + +
        +
      • +

        name

        +
        java.lang.String name()
        +
        Get the name of this delegate. This is completely static after registration has completed and will never change.
        +
        Returns:
        The name
        +
      • +
      + + + +
        +
      • +

        type

        +
        java.lang.Class<T> type()
        +
        Get the delegate type. It will be Item or Block.
        +
        Returns:
        The type of delegate
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageCreationHandler.html b/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageCreationHandler.html new file mode 100644 index 0000000..02d3bbe --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageCreationHandler.html @@ -0,0 +1,265 @@ + + + + + +VillagerRegistry.IVillageCreationHandler (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Interface VillagerRegistry.IVillageCreationHandler

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    VillagerRegistry
    +
    +
    +
    +
    public static interface VillagerRegistry.IVillageCreationHandler
    +
    Allow access to the StructureVillagePieces array controlling new village + creation so you can insert your own new village pieces
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getComponentClass

        +
        java.lang.Class<?> getComponentClass()
        +
        The class of the root structure component to add to the village
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageTradeHandler.html b/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageTradeHandler.html new file mode 100644 index 0000000..7df54e0 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.IVillageTradeHandler.html @@ -0,0 +1,219 @@ + + + + + +VillagerRegistry.IVillageTradeHandler (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Interface VillagerRegistry.IVillageTradeHandler

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    VillagerRegistry
    +
    +
    +
    +
    public static interface VillagerRegistry.IVillageTradeHandler
    +
    Allow access to the MerchantRecipeList for a villager type for manipulation
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        manipulateTradesForVillager

        +
        void manipulateTradesForVillager(EntityVillager villager,
        +                               MerchantRecipeList recipeList,
        +                               java.util.Random random)
        +
        Called to allow changing the content of the MerchantRecipeList for the villager + supplied during creation
        +
        Parameters:
        villager -
        recipeList -
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.html b/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.html new file mode 100644 index 0000000..2ae95e0 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/VillagerRegistry.html @@ -0,0 +1,525 @@ + + + + + +VillagerRegistry (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.common.registry
+

Class VillagerRegistry

+
+
+ +
+
    +
  • +
    +
    +
    public class VillagerRegistry
    +extends java.lang.Object
    +
    Registry for villager trading control
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VillagerRegistry

        +
        public VillagerRegistry()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        registerVillagerId

        +
        public void registerVillagerId(int id)
        +
        Register your villager id
        +
        Parameters:
        id -
        +
      • +
      + + + +
        +
      • +

        registerVillagerSkin

        +
        public void registerVillagerSkin(int villagerId,
        +                        ResourceLocation villagerSkin)
        +
        Register a new skin for a villager type
        +
        Parameters:
        villagerId -
        villagerSkin -
        +
      • +
      + + + + + + + +
        +
      • +

        registerVillageTradeHandler

        +
        public void registerVillageTradeHandler(int villagerId,
        +                               VillagerRegistry.IVillageTradeHandler handler)
        +
        Register a new villager trading handler for the specified villager type
        +
        Parameters:
        villagerId -
        handler -
        +
      • +
      + + + +
        +
      • +

        getVillagerSkin

        +
        public static ResourceLocation getVillagerSkin(int villagerType,
        +                               ResourceLocation defaultSkin)
        +
        Callback to setup new villager types
        +
        Parameters:
        villagerType -
        defaultSkin -
        +
      • +
      + + + +
        +
      • +

        getRegisteredVillagers

        +
        public static java.util.Collection<java.lang.Integer> getRegisteredVillagers()
        +
        Returns a list of all added villager types
        +
        Returns:
        newVillagerIds
        +
      • +
      + + + +
        +
      • +

        manageVillagerTrades

        +
        public static void manageVillagerTrades(MerchantRecipeList recipeList,
        +                        EntityVillager villager,
        +                        int villagerType,
        +                        java.util.Random random)
        +
        Callback to handle trade setup for villagers
        +
        Parameters:
        recipeList -
        villager -
        villagerType -
        random -
        +
      • +
      + + + +
        +
      • +

        addExtraVillageComponents

        +
        public static void addExtraVillageComponents(java.util.ArrayList components,
        +                             java.util.Random random,
        +                             int i)
        +
      • +
      + + + + + + + +
        +
      • +

        addEmeraldBuyRecipe

        +
        public static void addEmeraldBuyRecipe(EntityVillager villager,
        +                       MerchantRecipeList list,
        +                       java.util.Random random,
        +                       Item item,
        +                       float chance,
        +                       int min,
        +                       int max)
        +
      • +
      + + + +
        +
      • +

        addEmeraldSellRecipe

        +
        public static void addEmeraldSellRecipe(EntityVillager villager,
        +                        MerchantRecipeList list,
        +                        java.util.Random random,
        +                        Item item,
        +                        float chance,
        +                        int min,
        +                        int max)
        +
      • +
      + + + +
        +
      • +

        applyRandomTrade

        +
        public static void applyRandomTrade(EntityVillager villager,
        +                    java.util.Random rand)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/package-frame.html b/javadoc/cpw/mods/fml/common/registry/package-frame.html new file mode 100644 index 0000000..21a5bc6 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/package-frame.html @@ -0,0 +1,49 @@ + + + + + +cpw.mods.fml.common.registry (Forge API) + + + + +

cpw.mods.fml.common.registry

+
+

Interfaces

+ +

Classes

+ +

Enums

+ +

Exceptions

+ +

Annotation Types

+ +
+ + diff --git a/javadoc/cpw/mods/fml/common/registry/package-summary.html b/javadoc/cpw/mods/fml/common/registry/package-summary.html new file mode 100644 index 0000000..4b15115 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/package-summary.html @@ -0,0 +1,268 @@ + + + + + +cpw.mods.fml.common.registry (Forge API) + + + + + + + +
+ + + + + +
+ + +
+

Package cpw.mods.fml.common.registry

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/javadoc/cpw/mods/fml/common/registry/package-tree.html b/javadoc/cpw/mods/fml/common/registry/package-tree.html new file mode 100644 index 0000000..6b23ed2 --- /dev/null +++ b/javadoc/cpw/mods/fml/common/registry/package-tree.html @@ -0,0 +1,182 @@ + + + + + +cpw.mods.fml.common.registry Class Hierarchy (Forge API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package cpw.mods.fml.common.registry

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + + + -- cgit v1.2.3