use of org.spongepowered.common.data.type.SpongeCookedFish in project SpongeCommon by SpongePowered.
the class CookedFishRegistryModule method registerAdditional.
@AdditionalRegistration
public void registerAdditional() {
for (ItemFishFood.FishType fishType : ItemFishFood.FishType.values()) {
if (fishType.canCook() && !this.fishMap.containsKey(fishType.name().toLowerCase(Locale.ENGLISH))) {
CookedFish cooked = new SpongeCookedFish(fishType.name(), new SpongeTranslation("item.fish." + fishType.getUnlocalizedName() + ".cooked.name"), fishType);
this.fishMap.put(cooked.getId().toLowerCase(Locale.ENGLISH), cooked);
}
}
}
use of org.spongepowered.common.data.type.SpongeCookedFish in project SpongeCommon by SpongePowered.
the class CookedFishRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
for (ItemFishFood.FishType fishType : ItemFishFood.FishType.values()) {
if (fishType.canCook()) {
CookedFish cooked = new SpongeCookedFish(fishType.name(), new SpongeTranslation("item.fish." + fishType.getUnlocalizedName() + ".cooked.name"), fishType);
this.fishMap.put(cooked.getId().toLowerCase(Locale.ENGLISH), cooked);
}
}
}
Aggregations