src/main/java/cech12/ceramicbucket/item/CeramicFishBucketItem.java
@OnlyIn(Dist.CLIENT)
    public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
        if (this.fishType == EntityType.TROPICAL_FISH) {
            CompoundNBT compoundnbt = stack.getTag();
            if (compoundnbt != null && compoundnbt.contains("BucketVariantTag", 3)) {
                int i = compoundnbt.getInt("BucketVariantTag");
                TextFormatting[] atextformatting = new TextFormatting[]{TextFormatting.ITALIC, TextFormatting.GRAY};
                String s = "color.minecraft." + TropicalFishEntity.func_212326_d(i);
                String s1 = "color.minecraft." + TropicalFishEntity.func_212323_p(i);

                for(int j = 0; j < TropicalFishEntity.SPECIAL_VARIANTS.length; ++j) {
                    if (i == TropicalFishEntity.SPECIAL_VARIANTS[j]) {
                        tooltip.add((new TranslationTextComponent(TropicalFishEntity.func_212324_b(j))).applyTextStyles(atextformatting));
                        return;
                    }
                }

                tooltip.add((new TranslationTextComponent(TropicalFishEntity.func_212327_q(i))).applyTextStyles(atextformatting));
                ITextComponent itextcomponent = new TranslationTextComponent(s);
                if (!s.equals(s1)) {
                    itextcomponent.appendText(", ").appendSibling(new TranslationTextComponent(s1));
                }

                itextcomponent.applyTextStyles(atextformatting);
                tooltip.add(itextcomponent);
            }
        }
    }
/**
     * allows items to add custom lines of information to the mouseover description
     */
allows items to add custom lines of information to the mouseover description
allows items to add custom lines of information to the mouseover description
@OnlyIn(Dist.CLIENT)
    public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
        if (this.fishType == EntityType.TROPICAL_FISH) {
            CompoundNBT compoundnbt = stack.getTag();
            if (compoundnbt != null && compoundnbt.contains("BucketVariantTag", 3)) {
                int i = compoundnbt.getInt("BucketVariantTag");
                TextFormatting[] atextformatting = new TextFormatting[]{TextFormatting.ITALIC, TextFormatting.GRAY};
                String s = "color.minecraft." + TropicalFishEntity.func_212326_d(i);
                String s1 = "color.minecraft." + TropicalFishEntity.func_212323_p(i);
                for(int j = 0; j < TropicalFishEntity.SPECIAL_VARIANTS.length; ++j) {
                    if (i == TropicalFishEntity.SPECIAL_VARIANTS[j]) {
                        tooltip.add((new TranslationTextComponent(TropicalFishEntity.func_212324_b(j))).applyTextStyles(atextformatting));
                        return;
                    }
                }
                tooltip.add((new TranslationTextComponent(TropicalFishEntity.func_212327_q(i))).applyTextStyles(atextformatting));
                ITextComponent itextcomponent = new TranslationTextComponent(s);
                if (!s.equals(s1)) {
                    itextcomponent.appendText(", ").appendSibling(new TranslationTextComponent(s1));
                }
                itextcomponent.applyTextStyles(atextformatting);
                tooltip.add(itextcomponent);
            }
        }
    }
@ OnlyIn ( Dist . CLIENT ) public void addInformation ( ItemStack stack , @ Nullable World worldIn , List < ITextComponent > tooltip , ITooltipFlag flagIn ) { if ( this . fishType == EntityType . TROPICAL_FISH ) { CompoundNBT compoundnbt = stack . getTag ( ) ; if ( compoundnbt != null && compoundnbt . contains ( "BucketVariantTag" , 3 ) ) { int i = compoundnbt . getInt ( "BucketVariantTag" ) ; TextFormatting [ ] atextformatting = new TextFormatting [ ] { TextFormatting . ITALIC , TextFormatting . GRAY } ; String s = "color.minecraft." + TropicalFishEntity . func_212326_d ( i ) ; String s1 = "color.minecraft." + TropicalFishEntity . func_212323_p ( i ) ; for ( int j = 0 ; j < TropicalFishEntity . SPECIAL_VARIANTS . length ; ++ j ) { if ( i == TropicalFishEntity . SPECIAL_VARIANTS [ j ] ) { tooltip . add ( ( new TranslationTextComponent ( TropicalFishEntity . func_212324_b ( j ) ) ) . applyTextStyles ( atextformatting ) ) ; return ; } } tooltip . add ( ( new TranslationTextComponent ( TropicalFishEntity . func_212327_q ( i ) ) ) . applyTextStyles ( atextformatting ) ) ; ITextComponent itextcomponent = new TranslationTextComponent ( s ) ; if ( ! s . equals ( s1 ) ) { itextcomponent . appendText ( ", " ) . appendSibling ( new TranslationTextComponent ( s1 ) ) ; } itextcomponent . applyTextStyles ( atextformatting ) ; tooltip . add ( itextcomponent ) ; } } }
allows items to add custom lines of information to the mouseover description
allows items to add custom lines of information to the mouseover description