Package net.minecraft.item

Examples of net.minecraft.item.EnumRarity


  protected void refreshTooltip() {
    toolTip.clear();
    int amount = 0;
    if (hasFluid()) {
      Fluid fluidType = getFluidType();
      EnumRarity rarity = fluidType.getRarity();
      if (rarity == null)
        rarity = EnumRarity.common;
      ToolTipLine fluidName = new ToolTipLine(fluidType.getLocalizedName(getFluid()), rarity.rarityColor);
      fluidName.setSpacing(2);
      toolTip.add(fluidName);
View Full Code Here


    }

    toolTip.clear();
    int amount = 0;
    for (Fluid filter : filters) {
      EnumRarity rarity = filter.getRarity();
      if (rarity == null)
        rarity = EnumRarity.common;
      FluidStack filterFluidStack = FluidRegistry.getFluidStack(filter.getName(), 0);
      ToolTipLine name = new ToolTipLine(filter.getLocalizedName(filterFluidStack), rarity.rarityColor);
      name.setSpacing(2);
View Full Code Here

    protected void refreshTooltip() {
        toolTip.clear();
        int amount = 0;
        if (getFluid() != null && getFluid().amount > 0 && getFluid().getFluid() != null) {
            Fluid fluidType = getFluidType();
            EnumRarity rarity = fluidType.getRarity();
            if (rarity == null)
                rarity = EnumRarity.common;
            ToolTipLine fluidName = new ToolTipLine(fluidType.getLocalizedName(), rarity.rarityColor);
            fluidName.setSpacing(2);
            toolTip.add(fluidName);
View Full Code Here

    @Override
    protected void refreshTooltip() {
        toolTip.clear();
        int amount = 0;
        if (filter != null) {
            EnumRarity rarity = filter.getRarity();
            if (rarity == null)
                rarity = EnumRarity.common;
            ToolTipLine name = new ToolTipLine(filter.getLocalizedName(), rarity.rarityColor);
            name.setSpacing(2);
            toolTip.add(name);
View Full Code Here

TOP

Related Classes of net.minecraft.item.EnumRarity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.