use of org.lanternpowered.server.statistic.builder.EntityStatisticBuilder 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