Search in sources :

Example 11 with SpongeTranslation

use of org.spongepowered.common.text.translation.SpongeTranslation in project SpongeCommon by SpongePowered.

the class CoalTypeRegistryModule method registerDefaults.

@Override
public void registerDefaults() {
    this.coaltypeMappings.put("coal", new SpongeCoalType(0, "COAL", new SpongeTranslation("item.coal.name")));
    this.coaltypeMappings.put("charcoal", new SpongeCoalType(1, "CHARCOAL", new SpongeTranslation("item.charcoal.name")));
}
Also used : SpongeTranslation(org.spongepowered.common.text.translation.SpongeTranslation) SpongeCoalType(org.spongepowered.common.item.SpongeCoalType)

Aggregations

SpongeTranslation (org.spongepowered.common.text.translation.SpongeTranslation)11 ItemFishFood (net.minecraft.item.ItemFishFood)2 CookedFish (org.spongepowered.api.data.type.CookedFish)2 Inject (org.spongepowered.asm.mixin.injection.Inject)2 SpongeCookedFish (org.spongepowered.common.data.type.SpongeCookedFish)2 SpongeEntityType (org.spongepowered.common.entity.SpongeEntityType)2 ImmutableList (com.google.common.collect.ImmutableList)1 ImmutableMap (com.google.common.collect.ImmutableMap)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Advancement (net.minecraft.advancements.Advancement)1 Criterion (net.minecraft.advancements.Criterion)1 FrameType (net.minecraft.advancements.FrameType)1 IMerchant (net.minecraft.entity.IMerchant)1 MultiPartEntityPart (net.minecraft.entity.MultiPartEntityPart)1 EntityLightningBolt (net.minecraft.entity.effect.EntityLightningBolt)1 EntityWeatherEffect (net.minecraft.entity.effect.EntityWeatherEffect)1 AbstractHorse (net.minecraft.entity.passive.AbstractHorse)1