Interface ConfigurableFactory

All Known Implementing Classes:
BackgroundMusicSourceFactory, BlockFactory, BlockTargetFactory, ConditionAndActionAreaFactory, ConditionAndActionPortalFactory, ConfigurableFactoryHelper.ACFactory, ConfigurableFactoryHelper.DCFactory, CreatureProtectionAreaFactory, DamagingAreaFactory, DoorFactory, FireFactory, FishSourceFactory, GateFactory, HousePortalFactory, KeyDestroyingDoorFactory, KeyedPortalFactory, LevelCheckingPortalFactory, LifeDrainAreaFactory, LockedDoorFactory, LoopedAmbientSoundSourceFactory, MessagingAreaFactory, NoLoginAreaFactory, NPCOwnedChestFactory, OccupantAreaFactory, OnePlayerAreaFactory, OnePlayerRoomDoorFactory, PasswordPortalFactory, PeriodicAmbientSoundSourceFactory, PersonalChestFactory, PlaySoundEntityFactory, PopupImageFactory, QuestCheckingPortalFactory, QuestCompletedPortalFactory, RandomDestinationPortalFactory, ShopSignFactory, SoundSourceFactory, SpeakerNPCFactory, ViewChangeEntityFactory

public interface ConfigurableFactory
A general object factory that accepts confguration attributes.
  • Method Details

    • create

      Create an object.
      Parameters:
      ctx - Configuration context.
      Returns:
      A new object, or null if allowed by the factory type.
      Throws:
      IllegalArgumentException - If there is a problem with the attributes. The exception message should be a value suitable for meaningful user interpretation.