This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
(c) SIB Visions 2012 | |
http://www.sibvisions.com | |
*/ | |
public class SimpleSourceFile { | |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// Class members | |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/** the source parser. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package littleMaidMobX; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.List; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.BlockLiquid; | |
import net.minecraft.creativetab.CreativeTabs; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.entity.EntityList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this can be simplified | |
addModelClass(ModelLittleMaid_AC.class, "AC", "mmmlibx.lib.multiModel.model.mc162.ModelLittleMaid_AC"); | |
addModelClass(ModelLittleMaid_Orign.class, "Orign", "mmmlibx.lib.multiModel.model.mc162.ModelLittleMaid_Orign"); | |
addModelClass(ModelLittleMaid_Archetype.class, "Archetype", "mmmlibx.lib.multiModel.model.mc162.ModelLittleMaid_Archetype"); | |
addModelClass(ModelLittleMaid_Aug.class, "Aug", "mmmlibx.lib.multiModel.model.mc162.ModelLittleMaid_Aug"); | |
addModelClass(ModelLittleMaid_RX0.class, "RX0", "mmmlibx.lib.multiModel.model.mc162.ModelLittleMaid_RX0"); | |
addModelClass(ModelLittleMaid_SR2.class, "SR2", "mmmlibx.lib.multiModel.model.mc162.ModelLittleMaid_SR2"); | |
addModelClass(MMM_ModelMulti_Stef.class, "Stef", "mmmlibx.lib.MMM_ModelMulti_Stef"); | |
addModelClass(MMM_ModelMulti_Steve.class, "Steve", "mmmlibx.lib.MMM_ModelMulti_Steve"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void associateFeatures() | |
{ | |
associateFeature("generateQuicksand", new WorldGenSplotches(BOPCBlocks.mud, 1, 24, Blocks.grass, Blocks.dirt, Blocks.sand)); | |
associateFeature("generateCanyon", new WorldGenSplotches(BOPCBlocks.rocks, 0, 48, Blocks.stone)); | |
associateFeature("generateStoneInGrass", new WorldGenSplotches(Blocks.stone, 0, 32, Blocks.grass)); | |
associateFeature("generateStoneInGrass2", new WorldGenSplotches(Blocks.stone, 0, 48, Blocks.grass, Blocks.dirt)); | |
associateFeature("generateGrass", new WorldGenSplotches(Blocks.grass, 0, 48, BOPCBlocks.rocks)); | |
associateFeature("generateSand", new WorldGenSplotches(Blocks.sand, 0, 32, BOPCBlocks.rocks)); | |
associateFeature("generateQuagmire", new WorldGenSplotches(Blocks.grass, 0, 48, BOPCBlocks.mud)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static double getReturnCosts(ModPlayer cmdUser) { | |
long fullhoursplayed = cmdUser.getFullHoursPlayed(); | |
if (fullhoursplayed < 12) { | |
return 0; | |
} | |
long fullDays = 1 + (fullhoursplayed/24); | |
double price = Math.min(1500, fullDays*200); | |
int r = cmdUser.getPremiumRank(); | |
if (r >= 5) | |
return 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!par3World.isRemote) { | |
int blockId = par3World.getBlockId(par4, par5, par6); | |
if(blockId != RGBWool.WoolID){ | |
System.out.println("Clicked Non-Wool"); | |
par2EntityPlayer.openGui(RGBWool.instance, 0, par3World, par4, par5, par6); | |
return true; | |
} else { | |
NBTTagCompound nbt = par1ItemStack.getTagCompound(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getGlErrorString(int error_code) { | |
switch (error_code) { | |
case GL11.GL_NO_ERROR: | |
return "No error"; | |
case GL11.GL_INVALID_ENUM: | |
return "Invalid enum"; | |
case GL11.GL_INVALID_VALUE: | |
return "Invalid value"; | |
case GL11.GL_INVALID_OPERATION: | |
return "Invalid operation"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "spircompiler.h" | |
#include "message.h" | |
#include "../SPIRV/GlslangToSpv.h" | |
#include "ResourceLimits.h" | |
#ifdef SPIRV_OPT_APPLY | |
#include "opt/build_module.h" | |
#include "opt/ir_loader.h" | |
#include "opt/pass_manager.h" | |
#include "opt/passes.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E:\>glslangvalidator -v | |
Glslang Version: Overload400-PrecQual.1721 21-Dec-2016 | |
ESSL Version: OpenGL ES GLSL 3.00 glslang LunarG Khronos.Overload400-PrecQual.1721 21-Dec-2016 | |
GLSL Version: 4.20 glslang LunarG Khronos.Overload400-PrecQual.1721 21-Dec-2016 | |
SPIR-V Version 0x00010000, Revision 8 | |
GLSL.std.450 Version 100, Revision 1 | |
Khronos Tool ID 8 | |
GL_KHR_vulkan_glsl version 100 | |
ARB_GL_gl_spirv version 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $Id$ | |
/* | |
* Copyright (C) 2010, 2011 sk89q <http://www.sk89q.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
OlderNewer