本文整理汇总了Java中info.jbcs.minecraft.chisel.entity.EntityBallOMoss类的典型用法代码示例。如果您正苦于以下问题:Java EntityBallOMoss类的具体用法?Java EntityBallOMoss怎么用?Java EntityBallOMoss使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EntityBallOMoss类属于info.jbcs.minecraft.chisel.entity包,在下文中一共展示了EntityBallOMoss类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import info.jbcs.minecraft.chisel.entity.EntityBallOMoss; //导入依赖的package包/类
@Override
public void init() {
RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer());
RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer());
RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer());
RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer());
RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer());
RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer());
RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer());
RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer());
RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer());
RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer());
RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer());
RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle));
RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss));
MinecraftForgeClient.registerItemRenderer(Chisel.chisel, renderer);
// MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer);
}
示例2: init
import info.jbcs.minecraft.chisel.entity.EntityBallOMoss; //导入依赖的package包/类
@Override
public void init() {
RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer());
RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer());
RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer());
RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer());
RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer());
RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer());
RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer());
RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer());
RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer());
RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer());
RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer());
RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle));
RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss));
MinecraftForgeClient.registerItemRenderer(Chisel.chisel.itemID, renderer);
// MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer);
}
示例3: onItemRightClick
import info.jbcs.minecraft.chisel.entity.EntityBallOMoss; //导入依赖的package包/类
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if (!par3EntityPlayer.capabilities.isCreativeMode) {
--par1ItemStack.stackSize;
}
par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
if (!par2World.isRemote) {
par2World.spawnEntityInWorld(new EntityBallOMoss(par2World,par3EntityPlayer));
}
return par1ItemStack;
}
示例4: onItemRightClick
import info.jbcs.minecraft.chisel.entity.EntityBallOMoss; //导入依赖的package包/类
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if (!par3EntityPlayer.capabilities.isCreativeMode) {
--par1ItemStack.stackSize;
}
par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
if (!par2World.isRemote) {
par2World.spawnEntityInWorld(new EntityBallOMoss(par2World, par3EntityPlayer));
}
return par1ItemStack;
}
示例5: preInit
import info.jbcs.minecraft.chisel.entity.EntityBallOMoss; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
File configFile=event.getSuggestedConfigurationFile();
configExists=configFile.exists();
config = new Configuration(configFile);
config.load();
chisel = (ItemChisel) new ItemChisel(Carving.chisel).setTextureName("chisel:chisel").setUnlocalizedName("chisel").setCreativeTab(CreativeTabs.tabTools);
LanguageRegistry.addName(chisel, "Chisel");
GameRegistry.registerItem(chisel, "chisel.chisel");
// needle = (ItemChisel) new ItemChisel(config.getItem("needle",7816).getInt(),Carving.needle).setTextureName("chisel:needle").setUnlocalizedName("needle").setCreativeTab(CreativeTabs.tabTools);
// LanguageRegistry.addName(needle, "Needle");
if(featureEnabled("cloud")) {
itemCloudInABottle=(ItemCloudInABottle) new ItemCloudInABottle().setUnlocalizedName("Chisel:cloudinabottle").setTextureName("Chisel:cloudinabottle").setCreativeTab(CreativeTabs.tabTools);
LanguageRegistry.addName(itemCloudInABottle, "Cloud in a bottle");
EntityRegistry.registerModEntity(EntityCloudInABottle.class, "CloudInABottle", 1, this, 40, 1, true);
GameRegistry.registerItem(itemCloudInABottle, "chisel.cloudinabottle");
}
if(featureEnabled("ballOfMoss")) {
itemBallOMoss=(ItemBallOMoss) new ItemBallOMoss().setUnlocalizedName("Chisel:ballomoss").setTextureName("Chisel:ballomoss").setCreativeTab(CreativeTabs.tabTools);
LanguageRegistry.addName(itemBallOMoss, "Ball O' Moss");
EntityRegistry.registerModEntity(EntityBallOMoss.class, "BallOMoss", 2, this, 40, 1, true);
GameRegistry.registerItem(itemBallOMoss, "chisel.ballomoss");
}
concreteVelocity=config.get("general", "concreteVelocity",0.45,"Traversing concrete roads, players will acceleration to this velocity. For reference, normal running speed is about 0.28. Set to 0 to disable acceleration.").getDouble(0.45);
particlesTickrate=config.get("client", "particleTickrate",1,"Particle tick rate. Greater value = less particles.").getInt(1);
oldPillars=config.get("client", "pillarOldGraphics",false,"Use old pillar textures").getBoolean(false);
disableCTM=!config.get("client", "connectedTextures",true,"Enable connected textures").getBoolean(true);
blockDescriptions=config.get("client", "tooltipsUseBlockDescriptions",true,"Make variations of blocks have the same name, and use the description in tooltip to distinguish them.").getBoolean(true);
chiselStoneToCobbleBricks=config.get("general", "chiselStoneToCobbleBricks",true,"Chisel stone to cobblestone and bricks by left-click.").getBoolean(true);
enableChiseling=config.get("general", "enableChiseling",true,"Change blocks to another block using the Chisel and left-click.").getBoolean(true);
/* if(dropIceShards){
itemIceshard=new Item().setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("Chisel:iceshard").setTextureName("Chisel:iceshard");
// itemIceshard=new Item(2582).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("Chisel:iceshard").func_111206_d("Chisel:iceshard");
LanguageRegistry.addName(itemIceshard, "Ice shard");
GameRegistry.registerItem(itemIceshard, "chisel.iceshard");
CraftingManager.getInstance().addRecipe(new ItemStack(Blocks.ice, 1), new Object[] { "**", "**", '*', itemIceshard, });
} */
if(config.get("client", "customCreativeTab", true, "Add a new tab in creative mode and put all blocks that work with chisel there.").getBoolean(true)){
tabChisel = new CreativeTabs("tabChisel") {
@Override
public Item getTabIconItem() {
return chisel;
}
};
LanguageRegistry.instance().addStringLocalization("itemGroup.tabChisel", "en_US", "Chisel blocks");
} else{
tabChisel = CreativeTabs.tabBlock;
}
ChiselBlocks.load();
proxy.preInit();
}