當前位置: 首頁>>代碼示例>>Java>>正文


Java BlockColored.func_150031_c方法代碼示例

本文整理匯總了Java中net.minecraft.block.BlockColored.func_150031_c方法的典型用法代碼示例。如果您正苦於以下問題:Java BlockColored.func_150031_c方法的具體用法?Java BlockColored.func_150031_c怎麽用?Java BlockColored.func_150031_c使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.block.BlockColored的用法示例。


在下文中一共展示了BlockColored.func_150031_c方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getMapColorForBlockColored

import net.minecraft.block.BlockColored; //導入方法依賴的package包/類
public static MapColor getMapColorForBlockColored(int p_151644_0_)
{
    switch (BlockColored.func_150031_c(p_151644_0_))
    {
        case 0:
            return blackColor;
        case 1:
            return redColor;
        case 2:
            return greenColor;
        case 3:
            return brownColor;
        case 4:
            return blueColor;
        case 5:
            return purpleColor;
        case 6:
            return cyanColor;
        case 7:
            return silverColor;
        case 8:
            return grayColor;
        case 9:
            return pinkColor;
        case 10:
            return limeColor;
        case 11:
            return yellowColor;
        case 12:
            return lightBlueColor;
        case 13:
            return magentaColor;
        case 14:
            return adobeColor;
        case 15:
            return snowColor;
        default:
            return airColor;
    }
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:41,代碼來源:MapColor.java

示例2: handleRecipe

import net.minecraft.block.BlockColored; //導入方法依賴的package包/類
private void handleRecipe(ItemStack stack, boolean usage) {
	boolean isNugget = stack.getItem() == LOTRMod.mithrilNugget;
	boolean flag = LOTRItemDye.isItemDye(stack) == -1 && !isNugget;
	if ((flag && !(stack.getItem() instanceof LOTRItemHobbitPipe)) || (!usage && !flag))
		return;

	ExtendedCachedShapelessRecipe rec = null;

	List<List<?>> ingredients = new ArrayList<>();
	List<Object> results = new ArrayList<>();

	if ((usage && !flag) || (!usage))
		ingredients.add(pipes);

	if ((usage && flag) || (!usage)) {
		ingredients.add(getDyesFromPipe(stack));
		results.add(stack.copy());
	}

	if (usage) {
		if (flag) { // Pipe usage
			// Pipe
			ingredients.add(0, Arrays.asList(stack.copy()));

			// Result
			results.add(stack.copy());
		} else {// Dye usage
			// Dye
			ingredients.add(Arrays.asList(new Object[] { stack.copy() }));

			// Result
			int color = 0;

			if (isNugget) {
				color = 16;
			} else {
				color = BlockColored.func_150031_c(LOTRItemDye.isItemDye(stack));
			}

			ItemStack dyedPipe = new ItemStack(LOTRMod.hobbitPipe);
			LOTRItemHobbitPipe.setSmokeColor(dyedPipe, color);

			results.add(dyedPipe);
		}
	}

	rec = new ExtendedCachedShapelessRecipe(ingredients, results);

	arecipes.add(rec);
}
 
開發者ID:CraftedMods,項目名稱:nei-lotr,代碼行數:51,代碼來源:HobbitPipeRecipeHandler.java

示例3: func_151644_a

import net.minecraft.block.BlockColored; //導入方法依賴的package包/類
public static MapColor func_151644_a(int p_151644_0_)
{
    switch (BlockColored.func_150031_c(p_151644_0_))
    {
        case 0:
            return field_151646_E;

        case 1:
            return field_151645_D;

        case 2:
            return field_151651_C;

        case 3:
            return field_151650_B;

        case 4:
            return field_151649_A;

        case 5:
            return field_151678_z;

        case 6:
            return field_151679_y;

        case 7:
            return field_151680_x;

        case 8:
            return field_151670_w;

        case 9:
            return field_151671_v;

        case 10:
            return field_151672_u;

        case 11:
            return field_151673_t;

        case 12:
            return field_151674_s;

        case 13:
            return field_151675_r;

        case 14:
            return field_151676_q;

        case 15:
            return field_151666_j;

        default:
            return field_151660_b;
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:57,代碼來源:MapColor.java


注:本文中的net.minecraft.block.BlockColored.func_150031_c方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。