use of org.lanternpowered.server.item.enchantment.LanternEnchantmentBuilder in project LanternServer by LanternPowered.
the class DataRegistrar method setupRegistrations.
public static void setupRegistrations(LanternGame game) {
Copyable.register(ImmutableMap.class, map -> map);
Copyable.register(ImmutableList.class, list -> list);
Copyable.register(ImmutableSet.class, set -> set);
Copyable.register(List.class, ArrayList::new);
Copyable.register(Set.class, HashSet::new);
Copyable.register(Map.class, HashMap::new);
final PropertyRegistry propertyRegistry = game.getPropertyRegistry();
// Block property stores
propertyRegistry.register(SkyLuminanceProperty.class, new SkyLuminancePropertyStore());
propertyRegistry.register(GroundLuminanceProperty.class, new GroundLuminancePropertyStore());
// Entity property stores
propertyRegistry.register(DominantHandProperty.class, new DominantHandPropertyStore());
// Item property stores
propertyRegistry.register(SmeltableProperty.class, new SmeltablePropertyStore());
propertyRegistry.register(BurningFuelProperty.class, new BurningFuelPropertyStore());
final LanternDataManager dataManager = game.getDataManager();
// Register the data type serializers
DataTypeSerializers.registerSerializers(dataManager);
// Register the data serializers
DataTranslators.registerSerializers(dataManager);
// Register the data builders
dataManager.registerBuilder(PatternLayer.class, new LanternPatternLayer.Builder(game));
dataManager.registerBuilder(Text.class, new TextConfigSerializer());
dataManager.registerBuilder(BookView.class, new BookViewDataBuilder());
dataManager.registerBuilder(PotionEffect.class, new LanternPotionEffectBuilder());
dataManager.registerBuilder(RespawnLocation.class, new RespawnLocation.Builder());
dataManager.registerBuilder(Enchantment.class, new LanternEnchantmentBuilder());
final LanternValueFactory valueFactory = LanternValueFactory.get();
valueFactory.registerKey(Keys.CONNECTED_DIRECTIONS).add(builder -> builder.applicableTester(valueContainer -> valueContainer.supports(Keys.CONNECTED_WEST) || valueContainer.supports(Keys.CONNECTED_EAST) || valueContainer.supports(Keys.CONNECTED_NORTH) || valueContainer.supports(Keys.CONNECTED_SOUTH)).retrieveHandler((valueContainer, key) -> {
final Set<Direction> directions = new HashSet<>();
if (valueContainer.get(Keys.CONNECTED_WEST).orElse(false)) {
directions.add(Direction.WEST);
}
if (valueContainer.get(Keys.CONNECTED_EAST).orElse(false)) {
directions.add(Direction.EAST);
}
if (valueContainer.get(Keys.CONNECTED_SOUTH).orElse(false)) {
directions.add(Direction.SOUTH);
}
if (valueContainer.get(Keys.CONNECTED_NORTH).orElse(false)) {
directions.add(Direction.NORTH);
}
return Optional.of(directions);
}).offerHandler((valueContainer, key, directions) -> {
if (valueContainer instanceof ICompositeValueStore) {
final ICompositeValueStore store = (ICompositeValueStore) valueContainer;
final DataTransactionResult.Builder resultBuilder = DataTransactionResult.builder();
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_WEST, directions.contains(Direction.WEST)));
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_EAST, directions.contains(Direction.EAST)));
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_SOUTH, directions.contains(Direction.SOUTH)));
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_NORTH, directions.contains(Direction.NORTH)));
return resultBuilder.result(DataTransactionResult.Type.SUCCESS).build();
}
return DataTransactionResult.successNoData();
}).failAlwaysRemoveHandler());
valueFactory.registerKey(Keys.WIRE_ATTACHMENTS).add(builder -> builder.applicableTester(valueContainer -> valueContainer.supports(Keys.WIRE_ATTACHMENT_WEST) || valueContainer.supports(Keys.WIRE_ATTACHMENT_EAST) || valueContainer.supports(Keys.WIRE_ATTACHMENT_NORTH) || valueContainer.supports(Keys.WIRE_ATTACHMENT_SOUTH)).retrieveHandler((valueContainer, key) -> {
final Map<Direction, WireAttachmentType> attachments = new HashMap<>();
valueContainer.get(Keys.WIRE_ATTACHMENT_WEST).ifPresent(type -> attachments.put(Direction.WEST, type));
valueContainer.get(Keys.WIRE_ATTACHMENT_EAST).ifPresent(type -> attachments.put(Direction.EAST, type));
valueContainer.get(Keys.WIRE_ATTACHMENT_SOUTH).ifPresent(type -> attachments.put(Direction.SOUTH, type));
valueContainer.get(Keys.WIRE_ATTACHMENT_NORTH).ifPresent(type -> attachments.put(Direction.NORTH, type));
return Optional.of(attachments);
}).offerHandler((key, valueContainer, attachments) -> {
if (valueContainer instanceof ICompositeValueStore) {
final ICompositeValueStore store = (ICompositeValueStore) valueContainer;
final DataTransactionResult.Builder resultBuilder = DataTransactionResult.builder();
WireAttachmentType type = attachments.get(Direction.WEST);
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_WEST, type == null ? WireAttachmentTypes.NONE : type));
type = attachments.get(Direction.EAST);
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_EAST, type == null ? WireAttachmentTypes.NONE : type));
type = attachments.get(Direction.SOUTH);
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_SOUTH, type == null ? WireAttachmentTypes.NONE : type));
type = attachments.get(Direction.NORTH);
resultBuilder.absorbResult(store.offerNoEvents(Keys.CONNECTED_NORTH, type == null ? WireAttachmentTypes.NONE : type));
return resultBuilder.result(DataTransactionResult.Type.SUCCESS).build();
}
return DataTransactionResult.successNoData();
}).failAlwaysRemoveHandler());
valueFactory.registerKey(Keys.BODY_ROTATIONS).add(builder -> builder.applicableTester(valueContainer -> valueContainer.supports(Keys.RIGHT_ARM_ROTATION) || valueContainer.supports(Keys.LEFT_ARM_ROTATION) || valueContainer.supports(Keys.RIGHT_LEG_ROTATION) || valueContainer.supports(Keys.LEFT_LEG_ROTATION) || valueContainer.supports(Keys.HEAD_ROTATION) || valueContainer.supports(Keys.CHEST_ROTATION)).retrieveHandler((valueContainer, key) -> {
final Map<BodyPart, Vector3d> rotations = new HashMap<>();
valueContainer.get(Keys.RIGHT_ARM_ROTATION).ifPresent(type -> rotations.put(BodyParts.RIGHT_ARM, type));
valueContainer.get(Keys.RIGHT_LEG_ROTATION).ifPresent(type -> rotations.put(BodyParts.RIGHT_LEG, type));
valueContainer.get(Keys.LEFT_ARM_ROTATION).ifPresent(type -> rotations.put(BodyParts.LEFT_ARM, type));
valueContainer.get(Keys.LEFT_LEG_ROTATION).ifPresent(type -> rotations.put(BodyParts.LEFT_LEG, type));
valueContainer.get(Keys.HEAD_ROTATION).ifPresent(type -> rotations.put(BodyParts.HEAD, type));
valueContainer.get(Keys.CHEST_ROTATION).ifPresent(type -> rotations.put(BodyParts.CHEST, type));
return Optional.of(rotations);
}).offerHandler((key, valueContainer, rotations) -> {
if (valueContainer instanceof CompositeValueStore) {
final ICompositeValueStore store = (ICompositeValueStore) valueContainer;
final DataTransactionResult.Builder resultBuilder = DataTransactionResult.builder();
Vector3d rot;
if ((rot = rotations.get(BodyParts.RIGHT_ARM)) != null) {
resultBuilder.absorbResult(store.offerNoEvents(Keys.RIGHT_ARM_ROTATION, rot));
}
if ((rot = rotations.get(BodyParts.RIGHT_LEG)) != null) {
resultBuilder.absorbResult(store.offerNoEvents(Keys.RIGHT_LEG_ROTATION, rot));
}
if ((rot = rotations.get(BodyParts.LEFT_ARM)) != null) {
resultBuilder.absorbResult(store.offerNoEvents(Keys.LEFT_ARM_ROTATION, rot));
}
if ((rot = rotations.get(BodyParts.LEFT_LEG)) != null) {
resultBuilder.absorbResult(store.offerNoEvents(Keys.LEFT_LEG_ROTATION, rot));
}
if ((rot = rotations.get(BodyParts.HEAD)) != null) {
resultBuilder.absorbResult(store.offerNoEvents(Keys.HEAD_ROTATION, rot));
}
if ((rot = rotations.get(BodyParts.CHEST)) != null) {
resultBuilder.absorbResult(store.offerNoEvents(Keys.CHEST_ROTATION, rot));
}
return resultBuilder.result(DataTransactionResult.Type.SUCCESS).build();
}
return DataTransactionResult.successNoData();
}).failAlwaysRemoveHandler());
DataManipulatorRegistry.get();
}
use of org.lanternpowered.server.item.enchantment.LanternEnchantmentBuilder in project LanternServer by LanternPowered.
the class LanternGameRegistry method registerDefaults.
public void registerDefaults() {
registerBuilderSupplier(LanternAttributeBuilder.class, LanternAttributeBuilder::new).registerBuilderSupplier(BlockSnapshot.Builder.class, LanternBlockSnapshotBuilder::new).registerBuilderSupplier(BlockSnapshotBuilder.class, LanternBlockSnapshotBuilder::new).registerBuilderSupplier(BlockState.Builder.class, LanternBlockStateBuilder::new).registerBuilderSupplier(WorldArchetype.Builder.class, LanternWorldArchetypeBuilder::new).registerBuilderSupplier(ParticleEffect.Builder.class, LanternParticleEffectBuilder::new).registerBuilderSupplier(PotionEffect.Builder.class, LanternPotionEffectBuilder::new).registerBuilderSupplier(Task.Builder.class, () -> new LanternTaskBuilder(Lantern.getGame().getScheduler())).registerBuilderSupplier(Ban.Builder.class, BanBuilder::new).registerBuilderSupplier(TabListEntry.Builder.class, LanternTabListEntryBuilder::new).registerBuilderSupplier(Selector.Builder.class, LanternSelectorBuilder::new).registerBuilderSupplier(Objective.Builder.class, LanternObjectiveBuilder::new).registerBuilderSupplier(Scoreboard.Builder.class, LanternScoreboardBuilder::new).registerBuilderSupplier(Team.Builder.class, LanternTeamBuilder::new).registerBuilderSupplier(ServerBossBar.Builder.class, LanternBossBarBuilder::new).registerBuilderSupplier(BlockDamageSource.Builder.class, LanternBlockDamageSourceBuilder::new).registerBuilderSupplier(DamageSource.Builder.class, LanternDamageSourceBuilder::new).registerBuilderSupplier(EntityDamageSource.Builder.class, LanternEntityDamageSourceBuilder::new).registerBuilderSupplier(FallingBlockDamageSource.Builder.class, LanternFallingBlockDamageSourceBuilder::new).registerBuilderSupplier(IndirectEntityDamageSource.Builder.class, LanternIndirectEntityDamageSourceBuilder::new).registerBuilderSupplier(HealingSource.Builder.class, LanternHealingSourceBuilder::new).registerBuilderSupplier(EntityHealingSource.Builder.class, LanternEntityHealingSourceBuilder::new).registerBuilderSupplier(RespawnLocation.Builder.class, RespawnLocation.Builder::new).registerBuilderSupplier(SoundType.Builder.class, LanternSoundTypeBuilder::new).registerBuilderSupplier(FireworkEffect.Builder.class, LanternFireworkEffectBuilder::new).registerBuilderSupplier(InventoryArchetype.Builder.class, LanternInventoryArchetypeBuilder::new).registerBuilderSupplier(Inventory.Builder.class, LanternInventoryBuilder::create).registerBuilderSupplier(BiomeGenerationSettings.Builder.class, LanternBiomeGenerationSettingsBuilder::new).registerBuilderSupplier(VirtualBiomeType.Builder.class, LanternVirtualBiomeTypeBuilder::new).registerBuilderSupplier(BlockStatisticBuilder.class, BlockStatisticBuilder::create).registerBuilderSupplier(EntityStatisticBuilder.class, EntityStatisticBuilder::create).registerBuilderSupplier(ItemStatisticBuilder.class, ItemStatisticBuilder::create).registerBuilderSupplier(StatisticBuilder.class, StatisticBuilder::create).registerBuilderSupplier(DataRegistration.Builder.class, LanternDataRegistrationBuilder::new).registerBuilderSupplier(WorldBorder.Builder.class, LanternWorldBorderBuilder::new).registerBuilderSupplier(FluidStack.Builder.class, LanternFluidStackBuilder::new).registerBuilderSupplier(FluidStackSnapshot.Builder.class, LanternFluidStackSnapshotBuilder::new).registerBuilderSupplier(ItemStack.Builder.class, LanternItemStackBuilder::new).registerBuilderSupplier(EventContextKey.Builder.class, LanternEventContextKeyBuilder::new).registerBuilderSupplier(Enchantment.Builder.class, LanternEnchantmentBuilder::new).registerBuilderSupplier(Key.Builder.class, LanternKeyBuilder::new).registerBuilderSupplier(Advancement.Builder.class, LanternAdvancementBuilder::new).registerBuilderSupplier(AdvancementTree.Builder.class, LanternAdvancementTreeBuilder::new).registerBuilderSupplier(AdvancementCriterion.Builder.class, LanternCriterionBuilder::new).registerBuilderSupplier(ScoreAdvancementCriterion.Builder.class, LanternScoreCriterionBuilder::new).registerBuilderSupplier(Trigger.Builder.class, LanternTriggerBuilder::new).registerBuilderSupplier(FilteredTrigger.Builder.class, LanternFilteredTriggerBuilder::new).registerBuilderSupplier(DisplayInfo.Builder.class, LanternDisplayInfoBuilder::new).registerBuilderSupplier(ShapedCraftingRecipe.Builder.class, LanternShapedCraftingRecipeBuilder::new).registerBuilderSupplier(IShapedCraftingRecipe.Builder.class, LanternShapedCraftingRecipeBuilder::new).registerBuilderSupplier(ShapelessCraftingRecipe.Builder.class, LanternShapelessCraftingRecipeBuilder::new).registerBuilderSupplier(IShapelessCraftingRecipe.Builder.class, LanternShapelessCraftingRecipeBuilder::new).registerBuilderSupplier(SmeltingRecipe.Builder.class, LanternSmeltingRecipeBuilder::new).registerBuilderSupplier(ISmeltingRecipe.Builder.class, LanternSmeltingRecipeBuilder::new).registerBuilderSupplier(Ingredient.Builder.class, LanternIngredientBuilder::new).registerBuilderSupplier(IIngredient.Builder.class, LanternIngredientBuilder::new).registerBuilderSupplier(IFuel.Builder.class, LanternFuelBuilder::new);
// All enum value enumerations must extend registry class, because very strange things
// are happening. Without this, all the dummy fields are never updated???
registerModule(LanternOperation.class, new AttributeOperationRegistryModule()).registerModule(LanternAttribute.class, new AttributeRegistryModule()).registerModule(new AttributeTargetRegistryModule()).registerModule(BlockType.class, BlockRegistryModule.get()).registerModule(BlockState.class, new BlockStateRegistryModule()).registerModule(BossBarColor.class, new BossBarColorRegistryModule()).registerModule(BossBarOverlay.class, new BossBarOverlayRegistryModule()).registerModule(Accessory.class, new AccessoryRegistryModule()).registerModule(DamageType.class, new DamageTypeRegistryModule()).registerModule(DamageModifierType.class, new DamageModifierTypeRegistryModule()).registerModule(new ConstantDamageSourceRegistryModule()).registerModule(HealingType.class, new HealingTypeRegistryModule()).registerModule(new ConstantHealingSourceRegistryModule()).registerModule(DismountType.class, new DismountTypeRegistryModule()).registerModule(SpawnType.class, new SpawnTypeRegistryModule()).registerModule(TeleportType.class, new TeleportTypeRegistryModule()).registerModule(DataFormat.class, new DataFormatRegistryModule()).registerModule(BigMushroomType.class, new EnumValueRegistryModule<BigMushroomType>(LanternBigMushroomType.class, BigMushroomTypes.class) {
}).registerModule(BrickType.class, new EnumValueRegistryModule<BrickType>(LanternBrickType.class, BrickTypes.class) {
}).registerModule(ComparatorType.class, new EnumValueRegistryModule<ComparatorType>(LanternComparatorType.class, ComparatorTypes.class) {
}).registerModule(DirtType.class, DirtTypeRegistryModule.get()).registerModule(DisguisedBlockType.class, new EnumValueRegistryModule<DisguisedBlockType>(LanternDisguisedBlockType.class, DisguisedBlockTypes.class) {
}).registerModule(LanternDoorHalf.class, new EnumValueRegistryModule<LanternDoorHalf>(LanternDoorHalf.class, null) {
}).registerModule(DoublePlantType.class, new EnumValueRegistryModule<DoublePlantType>(LanternDoublePlantType.class, DoublePlantTypes.class) {
}).registerModule(Art.class, new ArtRegistryModule()).registerModule(Career.class, new CareerRegistryModule()).registerModule(HandType.class, new HandTypeRegistryModule()).registerModule(HandPreference.class, new HandPreferenceRegistryModule()).registerModule(HorseColor.class, new HorseColorRegistryModule()).registerModule(HorseStyle.class, new HorseStyleRegistryModule()).registerModule(InstrumentType.class, new InstrumentTypeRegistryModule()).registerModule(Hinge.class, new EnumValueRegistryModule<Hinge>(LanternHinge.class, Hinges.class) {
}).registerModule(Key.class, KeyRegistryModule.get()).registerModule(PortionType.class, new EnumValueRegistryModule<PortionType>(LanternPortionType.class, PortionTypes.class) {
}).registerModule(LogAxis.class, new EnumValueRegistryModule<LogAxis>(LanternLogAxis.class, LogAxes.class) {
}).registerModule(NotePitch.class, NotePitchRegistryModule.get()).registerModule(OcelotType.class, new OcelotTypeRegistryModule()).registerModule(LlamaVariant.class, new LlamaVariantRegistryModule()).registerModule(Profession.class, new ProfessionRegistryModule()).registerModule(RabbitType.class, new RabbitTypeRegistryModule()).registerModule(ToolType.class, new ToolTypeRegistryModule()).registerModule(ArmorType.class, new ArmorTypeRegistryModule()).registerModule(PistonType.class, new EnumValueRegistryModule<PistonType>(LanternPistonType.class, PistonTypes.class) {
}).registerModule(PlantType.class, PlantTypeRegistryModule.get()).registerModule(PrismarineType.class, new EnumValueRegistryModule<PrismarineType>(LanternPrismarineType.class, PrismarineTypes.class) {
}).registerModule(QuartzType.class, QuartzTypeRegistryModule.get()).registerModule(SandstoneType.class, SandstoneTypeRegistryModule.get()).registerModule(SandType.class, SandTypeRegistryModule.get()).registerModule(ShrubType.class, ShrubTypeRegistryModule.get()).registerModule(StoneType.class, StoneTypeRegistryModule.get()).registerModule(SlabType.class, SlabTypeRegistryModule.get()).registerModule(TreeType.class, TreeTypeRegistryModule.get()).registerModule(WallType.class, new EnumValueRegistryModule<WallType>(LanternWallType.class, WallTypes.class) {
}).registerModule(SkinPart.class, new SkinPartRegistryModule()).registerModule(TransactionType.class, new TransactionTypeRegistryModule()).registerModule(ParticleType.class, new ParticleTypeRegistryModule()).registerModule(ParticleOption.class, new ParticleOptionRegistryModule()).registerModule(FireworkShape.class, FireworkShapeRegistryModule.get()).registerModule(PotionEffectType.class, PotionEffectTypeRegistryModule.get()).registerModule(SoundCategory.class, new SoundCategoryRegistryModule()).registerModule(SoundType.class, new SoundTypeRegistryModule()).registerModule(GameMode.class, GameModeRegistryModule.get()).registerModule(EquipmentType.class, new EquipmentTypeRegistryModule()).registerModule(ItemType.class, ItemRegistryModule.get()).registerModule(CollisionRule.class, new CollisionRuleRegistryModule()).registerModule(Criterion.class, new CriterionRegistryModule()).registerModule(DisplaySlot.class, new DisplaySlotRegistryModule()).registerModule(ObjectiveDisplayMode.class, new ObjectiveDisplayModeRegistryModule()).registerModule(Visibility.class, new VisibilityRegistryModule()).registerModule(new ArgumentTypeRegistryModule()).registerModule(ChatType.class, new ChatTypeRegistryModule()).registerModule(ChatVisibility.class, ChatVisibilityRegistryModule.get()).registerModule(new SelectorFactoryRegistryModule()).registerModule(SelectorType.class, new SelectorTypeRegistryModule()).registerModule(TextColor.class, new TextColorRegistryModule()).registerModule(new TextFormatRegistryModule()).registerModule(new TextSerializersRegistryModule()).registerModule(TextStyle.Base.class, new TextStyleRegistryModule()).registerModule(new TranslationManagerRegistryModule()).registerModule(BanType.class, new BanTypeRegistryModule()).registerModule(Rotation.class, new RotationRegistryModule()).registerModule(BiomeType.class, BiomeRegistryModule.get()).registerModule(new DefaultGameRulesRegistryModule()).registerModule(Difficulty.class, DifficultyRegistryModule.get()).registerModule(DimensionType.class, new DimensionTypeRegistryModule()).registerModule(WorldGeneratorModifier.class, new GeneratorModifierRegistryModule()).registerModule(GeneratorType.class, new GeneratorTypeRegistryModule()).registerModule(PortalAgentType.class, new PortalAgentTypeRegistryModule()).registerModule(SerializationBehavior.class, new SerializationBehaviorRegistryModule()).registerModule(Weather.class, new WeatherTypeRegistryModule()).registerModule(WorldArchetype.class, new WorldArchetypeRegistryModule()).registerModule(EntityType.class, EntityTypeRegistryModule.get()).registerModule(TileEntityType.class, TileEntityTypeRegistryModule.get()).registerModule(EntityProtocolType.class, new EntityProtocolTypeRegistryModule()).registerModule(InventoryArchetype.class, new InventoryArchetypeRegistryModule()).registerModule(QueryOperationType.class, new QueryOperationRegistryModule()).registerModule(GuiId.class, ClientContainerRegistryModule.get()).registerModule(GoldenApple.class, GoldenAppleRegistryModule.get()).registerModule(CoalType.class, CoalTypeRegistryModule.get()).registerModule(Fish.class, FishRegistryModule.get()).registerModule(CookedFish.class, CookedFishRegistryModule.get()).registerModule(DyeColor.class, DyeColorRegistryModule.get()).registerModule(PickupRule.class, PickupRuleRegistryModule.get()).registerModule(BannerPatternShape.class, BannerPatternShapeRegistryModule.get()).registerModule(EnchantmentType.class, EnchantmentTypeRegistryModule.get()).registerModule(SkullType.class, SkullTypeRegistryModule.get()).registerModule(PotionType.class, PotionTypeRegistryModule.get()).registerModule(RailDirection.class, RailDirectionRegistryModule.get()).registerModule(StatisticType.class, StatisticTypeRegistryModule.get()).registerModule(Statistic.class, StatisticRegistryModule.get()).registerModule(DataRegistration.class, DataManipulatorRegistryModule.get()).registerModule(RecordType.class, RecordTypeRegistryModule.get()).registerModule(FluidType.class, FluidTypeRegistryModule.get()).registerModule(EventContextKey.class, EventContextKeysModule.get()).registerModule(new BlockChangeFlagRegistryModule()).registerModule(new ItemStackComparatorRegistryModule()).registerModule(AdvancementTree.class, AdvancementTreeRegistryModule.get()).registerModule(Advancement.class, AdvancementRegistryModule.get()).registerModule(AdvancementType.class, new AdvancementTypeRegistryModule()).registerModule(Trigger.class, TriggerRegistryModule.get()).registerModule(new AdvancementTreeLayoutModule()).registerModule(new AdvancementCriterionModule()).registerModule(CraftingRecipe.class, this.craftingRecipeRegistry.getRegistryModule()).registerModule(ISmeltingRecipe.class, this.smeltingRecipeRegistry.getRegistryModule()).registerModule(IFuel.class, this.fuelRegistryModule).registerModule(Parameter.class, new ContextParameterRegistryModule()).registerModule(ActionType.class, ActionTypeRegistryModule.get()).registerModule(ConditionType.class, ConditionTypeRegistryModule.get()).registerModule(DoubleValueProviderType.class, DoubleValueProviderTypeRegistryModule.get()).registerModule(FloatValueProviderType.class, FloatValueProviderTypeRegistryModule.get()).registerModule(IntValueProviderType.class, IntValueProviderTypeRegistryModule.get());
registerFactories();
}
Aggregations