Class FishProperties.Builder
java.lang.Object
com.wdiscute.starcatcher.registry.FishProperties.Builder
- Enclosing class:
FishProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddModifier(Supplier<Supplier<AbstractMinigameModifier>> modifier) addModifier(List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers) addRarityRestriction(RarityCountRestriction.RarityCount... restriction) addRestrictions(AbstractFishRestriction... restriction) addRestrictions(List<AbstractFishRestriction> restriction) build()extra()secret()trophy()withAlwaysSpawnEntity(boolean alwaysSpawnEntity) withBaseChance(int baseChance) withBucketedFish(net.minecraft.core.Holder<net.minecraft.world.item.Item> bucketedFish) withDaytimeRestriction(DaytimeRestriction daytime) withEntityToSpawn(net.minecraft.core.Holder<net.minecraft.world.entity.EntityType<?>> entity) withFish(net.minecraft.core.Holder<net.minecraft.world.item.Item> fish) withHasGuideEntry(boolean hasGuideEntry) withItemToOverrideWith(net.minecraft.core.Holder<net.minecraft.world.item.Item> itemToOverrideWith) withMaxLimit(int limit) withMaxLimit(int limit, String s) withPercentageChance(float restriction) withRarity(FishProperties.Rarity rarity) withSeasons(SeasonRestriction seasonRestriction) withSizeAndWeight(FishProperties.SizeAndWeight sizeAndWeight) withSkipMinigame(boolean skipMinigame) withStar(FishProperties.Star star) withTreasure(net.minecraft.resources.ResourceLocation treasure) withTreasureHardCoded(net.minecraft.world.item.ItemStack itemStack) withWeather(WeatherRestriction weather)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withCatchInfo
-
withFish
public FishProperties.Builder withFish(net.minecraft.core.Holder<net.minecraft.world.item.Item> fish) -
trophy
-
secret
-
extra
-
withTreasure
-
withTreasureHardCoded
-
withBucketedFish
public FishProperties.Builder withBucketedFish(net.minecraft.core.Holder<net.minecraft.world.item.Item> bucketedFish) -
withEntityToSpawn
public FishProperties.Builder withEntityToSpawn(net.minecraft.core.Holder<net.minecraft.world.entity.EntityType<?>> entity) -
withSeasons
-
withAlwaysSpawnEntity
-
withAlwaysSpawnEntity
-
withItemToOverrideWith
public FishProperties.Builder withItemToOverrideWith(net.minecraft.core.Holder<net.minecraft.world.item.Item> itemToOverrideWith) -
withStar
-
withBaseChance
-
withSizeAndWeight
-
withRarity
-
withMaxLimit
-
withMaxLimit
-
addRestrictions
-
addRarityRestriction
public FishProperties.Builder addRarityRestriction(RarityCountRestriction.RarityCount... restriction) -
addRestrictions
-
withPercentageChance
-
withDifficulty
-
addModifier
public FishProperties.Builder addModifier(List<Supplier<Supplier<AbstractMinigameModifier>>> modifiers) -
addModifier
-
withDaytimeRestriction
-
withWeather
-
withSkipMinigame
-
withHasGuideEntry
-
build
-