Uses of Class
dev.wyck.util.WeightedList
Packages that use WeightedList
Package
Description
-
Uses of WeightedList in dev.wyck.biome.entity
Fields in dev.wyck.biome.entity declared as WeightedListModifier and TypeFieldDescriptionstatic final WeightedList<SpawnerData> MobSpawnSettings.EMPTY_MOB_LISTMethods in dev.wyck.biome.entity that return WeightedListModifier and TypeMethodDescriptionMobSpawnSettings.getMobsInCategory(MobCategory category) Gets the weighted spawn entries explicitly defined for a category.MobSpawnSettings.getMobsToSpawn(MobCategory category) Gets the weighted spawn entries for a category, returning an empty list when the category is not defined.Methods in dev.wyck.biome.entity that return types with arguments of type WeightedListModifier and TypeMethodDescriptionBiomeSpawner.spawners()Deprecated.Gets the spawners for each mob category.Methods in dev.wyck.biome.entity with parameters of type WeightedListModifier and TypeMethodDescriptionMobSpawnSettings.Builder.addAllSpawns(MobCategory category, WeightedList<SpawnerData> spawns) Adds every spawn entry in a weighted list to a category.BiomeSpawner.Builder.spawners(MobCategory category, WeightedList<NaturalSpawner> list) Deprecated.Adds multiple spawners to the builder.Method parameters in dev.wyck.biome.entity with type arguments of type WeightedListModifier and TypeMethodDescriptionstatic MobSpawnSettingsMobSpawnSettings.of(Map<MobCategory, WeightedList<SpawnerData>> spawnsByCategory, Map<EntityType, MobSpawnCost> mobSpawnCosts) Creates mob spawn settings. -
Uses of WeightedList in dev.wyck.util
Methods in dev.wyck.util that return WeightedListModifier and TypeMethodDescriptionWeightedList.Builder.build()static <E> WeightedList<E> WeightedList.of()static <E> WeightedList<E> WeightedList.of(WeightedList.Weighted<E>... items) static <E> WeightedList<E> WeightedList.of(E element) static <E> WeightedList<E> WeightedList.of(List<WeightedList.Weighted<E>> items) -
Uses of WeightedList in dev.wyck.worldgen.feature.configurations
Methods in dev.wyck.worldgen.feature.configurations that return WeightedListModifier and TypeMethodDescriptionWeightedRandomSelectorFeature.features()The weighted list of features to choose from.TemplateFeature.templates()The weighted list of templates to choose from.Methods in dev.wyck.worldgen.feature.configurations with parameters of type WeightedListModifier and TypeMethodDescriptionstatic TemplateFeatureTemplateFeature.of(WeightedList<TemplateFeature.TemplateEntry> templates) Creates a new template feature configuration.WeightedRandomSelectorFeature.of(WeightedList<PlacedFeature> features) Creates a new weighted random feature configuration. -
Uses of WeightedList in dev.wyck.worldgen.heightproviders
Methods in dev.wyck.worldgen.heightproviders that return WeightedListModifier and TypeMethodDescriptionWeightedListHeight.distribution()The weighted pool of providers to sample from.Methods in dev.wyck.worldgen.heightproviders with parameters of type WeightedListModifier and TypeMethodDescriptionstatic WeightedListHeightWeightedListHeight.of(WeightedList<HeightProvider> distribution) Creates a new weighted list height provider.static WeightedListHeightHeightProvider.weightedList(WeightedList<HeightProvider> distribution) A random value drawn from a weighted list of height providers. -
Uses of WeightedList in dev.wyck.worldgen.stateproviders
Methods in dev.wyck.worldgen.stateproviders that return WeightedListModifier and TypeMethodDescriptionWeightedStateProvider.entries()A weighted list entry of each block state.Methods in dev.wyck.worldgen.stateproviders with parameters of type WeightedListModifier and TypeMethodDescriptionWeightedStateProvider.Builder.entries(WeightedList<BlockData> entries) Sets the weighted list of block states.static WeightedStateProviderWeightedStateProvider.of(WeightedList<BlockData> entries) Creates a new weighted state provider. -
Uses of WeightedList in dev.wyck.worldgen.structure
Methods in dev.wyck.worldgen.structure that return WeightedListModifier and TypeMethodDescriptionStructureSpawnOverride.spawns()The spawners that replace the biome's own for this category.Methods in dev.wyck.worldgen.structure with parameters of type WeightedListModifier and TypeMethodDescriptionstatic StructureSpawnOverrideStructureSpawnOverride.of(StructureSpawnOverride.BoundingBoxType boundingBox, WeightedList<SpawnerData> spawns) Creates a new spawn override. -
Uses of WeightedList in dev.wyck.worldgen.structure.pools.alias
Methods in dev.wyck.worldgen.structure.pools.alias that return WeightedListModifier and TypeMethodDescriptionPoolAliasBinding.RandomGroup.groups()Returns the value of thegroupsrecord component.PoolAliasBinding.Random.targets()Returns the value of thetargetsrecord component.Methods in dev.wyck.worldgen.structure.pools.alias with parameters of type WeightedListModifier and TypeMethodDescriptionstatic PoolAliasBinding.RandomPoolAliasBinding.random(TemplatePool alias, WeightedList<TemplatePool> targets) Resolves the alias to one weighted target.static PoolAliasBinding.RandomGroupPoolAliasBinding.randomGroup(WeightedList<List<PoolAliasBinding>> groups) Picks one weighted group of bindings and applies all of them.Constructors in dev.wyck.worldgen.structure.pools.alias with parameters of type WeightedListModifierConstructorDescriptionRandom(TemplatePool alias, WeightedList<TemplatePool> targets) Creates an instance of aRandomrecord class.RandomGroup(WeightedList<List<PoolAliasBinding>> groups) Creates an instance of aRandomGrouprecord class. -
Uses of WeightedList in dev.wyck.worldgen.valueproviders
Methods in dev.wyck.worldgen.valueproviders that return WeightedListModifier and TypeMethodDescriptionWeightedListInt.distribution()The weighted pool of providers to sample from.Methods in dev.wyck.worldgen.valueproviders with parameters of type WeightedListModifier and TypeMethodDescriptionstatic WeightedListIntWeightedListInt.of(WeightedList<IntProvider> distribution) Creates a new weighted list int provider.static WeightedListIntIntProvider.weightedList(WeightedList<IntProvider> distribution) Creates a weighted list int provider.