Résolu [RÉSOLU] Mon Serveur Crash Avec Mon Mod Mais Mon Client Ne Crash Pas
-
Bonjour,
J’ai créer un mod qui contient des nouveaux items blocs armures etc… il marcher très jusque a maintenant .
J’ai créer une nouvelle entity ( Une tortue ) qui marche très bien sur Minecraft mais quand je met le mod sur mon serveur le serveur crash des que il se lance j’ai essayer de réglé le problème mais je comprend pas le crash report …
En espérant que vous allez m’aidé .Ps:
Serveur Cauldron 1.7.10Mods que contient le serveur:
BliblioCraft1.7.10, booze, Carpenters-Blcoks, Chisel, CustomNPCs, FlansMod, FlenixCitiesCore, GlibysVC, Monoblocks, MrCryFish, Ropes-Plus, thirstmod, TMCMR .
Flans:
AdiSuperCars, CTM pack, Poker’s Garage, Kevin&Vini’s DayZ, Kevin&Vini’s Guns, Kevin&Vini’s Modern, DrawX, Greylight, manus_civil_package, manus_dayz_package, manus_ww2_package, Milox177’s Cars, minecraft smp parts, Modern Warfare, Poker’s V2, Poker’s, Powers’s V4, Raikave_Pack, Simple Part Content, Zombie-Content Pack
Cordialement Florian.
CrashReport:
–-- Minecraft Crash Report ----
// Would you like a cupcake?Time: 06/08/15 00:54
Description: Exception in server tick loopjava.lang.NoClassDefFoundError: net/minecraft/client/renderer/entity/Render
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:420)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:492)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:319)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:170)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.entity.Render
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
… 30 more
Caused by: java.lang.NullPointerExceptionA detailed walkthrough of the error, its code path and all known details is as follows:
– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Linux (amd64) version 3.14.32-xxxx-grs-ipv6-64
Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 226083960 bytes (215 MB) / 382664704 bytes (364 MB) up to 4181590016 bytes (3987 MB)
JVM Flags: 2 total; -Xincgc -Xmx4G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:ERRORNullPointerException: null
Profiler Position: N/A (disabled)
Is Modded: Definitely; Server brand changed to ‘cauldron,craftbukkit,mcpc,fml,forge’
Type: Dedicated Server (map_server.txt) -
- Cette section est réservé au problème du forum. (je déplaces)
- Tu appel une classe client dans ton mod.
-
- D’accord désolé.
- Oui j’ai une classe ClientProxy.java , Je la renomme ?
-
Rien à voir.
Il me faudrait ton code pour savoir d’où vient le problème. -
Alors:
Main class:
ClientProxy.RenderInformation();
EntityRegistry.registerGlobalEntityID(EntityTurtleMob.class, “Tutle”, EntityRegistry.findGlobalUniqueEntityId());
EntityRegistry.findGlobalUniqueEntityId();
registerEntityEgg(EntityTurtleMob.class, 0x40501c, 0x5a4623);}
private void registerEntityEgg(Class entity, int primaryColor, int secondaryColor) {
int id = getUniqueEntityId();
EntityList.IDtoClassMapping.put(7827, EntityTurtleMob.class);
EntityList.entityEggs.put(7827, new EntityEggInfo(7827, primaryColor, secondaryColor));}
private int getUniqueEntityId() {
do {
startEntityId++;
}
while(EntityList.getStringFromID(7827) != null);
return startEntityId++;
}@EventHandler
public void init(FMLInitializationEvent event) {
//Proxy:}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {}
public static CreativeTabs tabAltisMine = new CreativeTabs(“tabAltisMine”){
@Override
public Item getTabIconItem(){
return new ItemStack(Kebab).getItem();
}
};
}
Class RenderTurtle:package com.AltisMine.mod.render;
import com.AltisMine.mob.Turtle;
import com.AltisMine.mod.entity.EntityTurtleMob;import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.ResourceLocation;public class RenderTurtleMob extends RenderLiving {
private static final ResourceLocation EntityTexture = new ResourceLocation(“amm:textures/mobs/Turtle.png”);
protected Turtle model;
public RenderTurtleMob(ModelBase par1ModelBase, float par2) {
super(par1ModelBase, par2);
model = ((Turtle)mainModel);
}public void renderTurtleMob(EntityTurtleMob entity, double par2, double par4, double par6, float par8, float par9) {
super.doRender(entity, par2, par4, par6, par8, par9);
}public void doRenderLivng(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9){
renderTurtleMob((EntityTurtleMob)par1EntityLiving, par2, par4, par6, par8, par9);
}
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
renderTurtleMob((EntityTurtleMob)par1Entity, par2, par4, par6, par8, par9);
}@Override
protected ResourceLocation getEntityTexture(Entity entity) {return EntityTexture;
}}
Class EntityTurtle:
package com.AltisMine.mod.entity;import java.util.Random;
import com.AltisMine.mod.AltisMineMod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIControlledByPlayer;
import net.minecraft.entity.ai.EntityAIFollowParent;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAIMate;
import net.minecraft.entity.ai.EntityAIPanic;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAITempt;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.passive.EntityAnimal;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;public class EntityTurtleMob extends EntityAnimal{
private final int dropAmount = 1;
public EntityTurtleMob(World par1World) {
super(par1World);
this.setSize(0.7F, 0.2F);
this.getNavigator().setAvoidsWater(false);
this.tasks.addTask(1, new EntityAIPanic(this, 0.3D));
this.tasks.addTask(2, new EntityAITempt(this, 0.3D, AltisMineMod.Salade, false));
this.tasks.addTask(3, new EntityAIFollowParent(this, 0.2D));
this.tasks.addTask(4, new EntityAIWander(this, 0.2D));
this.tasks.addTask(5, new EntityAILookIdle(this));
}@Override
public EntityAgeable createChild(EntityAgeable var1){return null;
}public void applyEntityAttributes() {
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.2D);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(6.0D);
}protected Item getDropItem()
{
return AltisMineMod.TurtleE;
}public int quantityDropped(Random random)
{
return dropAmount;
}public boolean isBreedingItem(ItemStack p_70877_1_)
{
return p_70877_1_ != null && p_70877_1_.getItem() == AltisMineMod.Salade;
}public boolean canBeSteered()
{
ItemStack itemstack = ((EntityPlayer)this.riddenByEntity).getHeldItem();
return itemstack != null && itemstack.getItem() == AltisMineMod.Salade;
}public boolean canBreatheUnderwater()
{
return true;
}}
et la Class Client Proxy:package com.AltisMine.mod.common;
import com.AltisMine.mob.Turtle;
import com.AltisMine.mod.entity.EntityTurtleMob;
import com.AltisMine.mod.render.RenderTurtleMob;import cpw.mods.fml.client.registry.RenderingRegistry;
public class ClientProxy {
public static void RenderInformation() {
RenderingRegistry.registerEntityRenderingHandler(EntityTurtleMob.class, new RenderTurtleMob(new Turtle(), 0));
}}
-
Tu utilises mal tes proxy, c’est pour ça que le serveur crash. Retourne voir le tutoriel sur la base du mod.
-
Il m’explique pas ^^ , vous pouvez m’aider ou me trouver un tuto merci ^^
-
C’est bon il me semble j’ai suivi un tuto merci
-
Je reviens car j’ai toujours le meme problème il me semble , j’ai suivi le tuto ici:
http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-7/proxies/mais bon le serveur crash toujours … c’est les proxy encore je crois regarder:
–-- Minecraft Crash Report ----
// Everything’s going to plan. No, really, that was supposed to happen.Time: 06/08/15 15:16
Description: Exception in server tick loopjava.lang.NoClassDefFoundError: net/minecraft/client/renderer/entity/Render
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:492)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:319)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:170)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.entity.Render
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
… 31 more
Caused by: java.lang.NullPointerExceptionA detailed walkthrough of the error, its code path and all known details is as follows:
– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Linux (amd64) version 3.14.32-xxxx-grs-ipv6-64
Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 220699448 bytes (210 MB) / 382664704 bytes (364 MB) up to 4181590016 bytes (3987 MB)
JVM Flags: 2 total; -Xincgc -Xmx4G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:ERRORNullPointerException: null
Profiler Position: N/A (disabled)
Is Modded: Definitely; Server brand changed to ‘cauldron,craftbukkit,mcpc,fml,forge’
Type: Dedicated Server (map_server.txt) -
http://minecraftforgefrance.fr/showthread.php?tid=587
Renvoies ton code. -
Ok ,
Main Class:package com.AltisMine.mod; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import com.AltisMine.mob.Turtle; import com.AltisMine.mod.entity.EntityTurtleMob; import com.AltisMine.mod.render.RenderTurtleMob; import net.minecraft.entity.EntityList.EntityEggInfo; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.model.ModelBiped; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemPotion; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "amm", name = "AltisMineMod", version = "1.0") public class AltisMineMod { private static int startEntityId = 7827; @SidedProxy(clientSide="com.AltisMine.mod.ClientProxy", serverSide="com.AltisMine.mod.ServerProxy") public static CommonProxy proxy; //Blocks: public static Block ATM;// public static Block ATM2;// public static Block BlockCannabis;// public static Block BlockCocaine;// public static Block BlockTabac;// public static Block PlantationOrge;// public static Block Mouchta;// public static Block FPeche;// //Items: public static Item BaretteCannabis;// public static Item Baril;// public static Item Batondefouille;// public static Item Batonrebelle;// public static Item Biere;// public static Item BootsMilitaire;// public static Item BootsTaxi;// public static Item Bootscrs;// public static Item Bootscrs2;// public static Item Bootspolice;// public static Item Bootspompier;// public static Item Bootssamu;// public static Item Cagoule;// public static Item Cagoule2;// public static Item CannabisBrut;// public static Item Cheque;// public static Item Cheque2;// public static Item Cheque3;// public static Item Cheque4;// public static Item ChestplateB;// public static Item ChestplateMilitaire;// public static Item ChestplateN;// public static Item ChestplateTaxi;// public static Item Chestplatecrs;// public static Item Chestplatecrs2;// public static Item Chestplatepolice;// public static Item Chestplatepompier;// public static Item Chestplatesamu;// public static Item Cigarrette;// public static Item Cigarre;// public static Item Cocaine;// public static Item GhillieBoots;// public static Item GhillieChestplate;// public static Item GhillieHelmet;// public static Item GhillieLeggings;// public static Item Gipnboots;// public static Item Gipnchestplate;// public static Item Gipnhelmet;// public static Item Gipnleggings;// public static Item HelmetMilitaire;// public static Item Helmetcrs;// public static Item Helmetcrs2;// public static Item Item_CRSMaterial;// public static Item Item_CRSMaterial2;// public static Item Item_GipnMaterial;// public static Item Item_GhillieMaterial;// public static Item Item_MilitaireMaterial;// public static Item Item_PoliceArmor;// public static Item Item_PompierMaterial;// public static Item Item_SamuArmor;// public static Item Item_TaxiMaterial;// public static Item Item_Terroriste2Material;// public static Item Item_TerroristeMaterial;// public static Item Joint;// public static Item LeggingsMilitaire;// public static Item LeggingsT;// public static Item LeggingsT2;// public static Item Leggingscrs;// public static Item LeggingsTaxi;// public static Item Leggingscrs2; public static Item Leggingspolice;// public static Item Leggingspompier;// public static Item Leggingssamu;// public static Item Loto;// public static Item Orge;// public static Item PoudreCocaine;// public static Item RangersT;// public static Item RangersT2;// public static Item Seringue;// public static Item Tabac;// public static Item Kebab;// public static Item CheeseBurger;// public static Item peche;// public static Item credit;// public static Item plongee;// public static Item plongee2;// public static Item plongee3;// public static Item plongee4;// public static Item Wolf;// public static Item Chains;// public static Item Dallas;// public static Item Hoxton;// public static Item Salade;// public static Item TurtleE;// public static Item TurtleC;// public static Item TurtleH;// public static Item RedBull;// public static Item RedBullVide;// @Instance public static AltisMineMod modInstance; public static final ItemArmor.ArmorMaterial MilitaireMaterial = EnumHelper.addArmorMaterial("MilitaireMaterial", 33, new int[]{3, 8, 6, 3}, 10); public static final ItemArmor.ArmorMaterial TaxiMaterial = EnumHelper.addArmorMaterial("TaxiMaterial", 5, new int[]{1, 3, 2, 1}, 15); public static final ItemArmor.ArmorMaterial CrsMaterial = EnumHelper.addArmorMaterial("CrsMaterial", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial CrsMaterial2 = EnumHelper.addArmorMaterial("CrsMaterial2", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial PoliceMaterial = EnumHelper.addArmorMaterial("PoliceMaterial", 15, new int[]{2, 5, 4, 1}, 12); public static final ItemArmor.ArmorMaterial PompierMaterial = EnumHelper.addArmorMaterial("PompierMaterial", 5, new int[]{1, 3, 2, 1}, 15); public static final ItemArmor.ArmorMaterial SamuMaterial = EnumHelper.addArmorMaterial("SamuMaterial", 5, new int[]{1, 3, 2, 1}, 15); public static final ItemArmor.ArmorMaterial TerroristeMaterial = EnumHelper.addArmorMaterial("TerroristeMaterial", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial TerroristeMaterial2 = EnumHelper.addArmorMaterial("TerroristeMaterial2", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial GhillieMaterial = EnumHelper.addArmorMaterial("GhillieMaterial", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial GipnMaterial = EnumHelper.addArmorMaterial("GipnMaterial", 33, new int[]{3, 8, 6, 3}, 10); public static final ItemArmor.ArmorMaterial plongeeMaterial = EnumHelper.addArmorMaterial("", 5, new int[]{1, 3, 2, 1}, 10); public static final ItemArmor.ArmorMaterial MasqueMaterial = EnumHelper.addArmorMaterial("", 15, new int[]{2, 0, 0, 0}, 0); @EventHandler public void preInit(FMLPreInitializationEvent event) { proxy.preInit(event); //Items: Kebab = new ItemFood(20, 0.8F, true).setTextureName("amm:kebab").setUnlocalizedName("Kebab").setCreativeTab(tabAltisMine); CheeseBurger = new ItemFood(20, 0.8F, true).setTextureName("amm:CheeseBurger").setUnlocalizedName("CheeseBurger").setCreativeTab(tabAltisMine); BaretteCannabis = new BaretteCannabis().setTextureName("amm:BaretteCannabis").setUnlocalizedName("BaretteCannabis").setCreativeTab(tabAltisMine); Baril = new Baril().setTextureName("amm:baril").setUnlocalizedName("Baril").setCreativeTab(tabAltisMine); Batondefouille = new Batondefouille().setTextureName("amm:Batondefouille").setUnlocalizedName("Batondefouille").setCreativeTab(tabAltisMine); Batonrebelle = new Batonrebelle().setTextureName("amm:Batonrebelle").setUnlocalizedName("Batonrebelle").setCreativeTab(tabAltisMine); Biere = new Biere().setTextureName("amm:Biere").setUnlocalizedName("Biere").setCreativeTab(tabAltisMine); BootsMilitaire = new Item_MilitaireMaterial(MilitaireMaterial, 0, 3).setUnlocalizedName("BootsMilitaire").setTextureName("amm:Rangers_Militaire").setCreativeTab(tabAltisMine); BootsTaxi = new Item_TaxiMaterial(TaxiMaterial, 0, 3).setUnlocalizedName("BootsTaxi").setTextureName("amm:Chaussures taxi").setCreativeTab(tabAltisMine); Bootscrs = new Item_CRSMaterial(CrsMaterial, 0, 3).setUnlocalizedName("Bootscrs").setTextureName("amm:Rangers_CRS").setCreativeTab(tabAltisMine); Bootscrs2 = new Item_CRSMaterial2(CrsMaterial2, 0, 3).setUnlocalizedName("Bootscrs2").setTextureName("amm:Rangers_CRS").setCreativeTab(tabAltisMine); Bootspolice = new Item_PoliceArmor(PoliceMaterial, 0, 3).setUnlocalizedName("Bootspolice").setTextureName("amm:Rangers_Police").setCreativeTab(tabAltisMine); Bootspompier = new Item_PompierMaterial(PompierMaterial, 0, 3).setUnlocalizedName("Bootspompier").setTextureName("amm:Rangers des pompiers").setCreativeTab(tabAltisMine); Bootssamu = new Item_SamuArmor(SamuMaterial, 0, 3).setUnlocalizedName("Bootssamu").setTextureName("amm:Rangers du samu").setCreativeTab(tabAltisMine); Cagoule = new Item_TerroristeMaterial(TerroristeMaterial, 0, 0).setUnlocalizedName("Cagoule").setTextureName("amm:Cagoule").setCreativeTab(tabAltisMine); Cagoule2 = new Item_TerroristeMaterial2(TerroristeMaterial2, 0, 0).setUnlocalizedName("Cagoule2").setTextureName("amm:Cagoule").setCreativeTab(tabAltisMine); CannabisBrut = new CannabisBrut().setUnlocalizedName("CannabisBrut").setTextureName("amm:CannabisBrut").setCreativeTab(tabAltisMine); Cheque = new Cheque().setUnlocalizedName("Cheque").setTextureName("amm:Cheque").setCreativeTab(tabAltisMine); Cheque2 = new Cheque().setUnlocalizedName("Cheque2").setTextureName("amm:Cheque").setCreativeTab(tabAltisMine); Cheque3 = new Cheque().setUnlocalizedName("Cheque3").setTextureName("amm:Cheque").setCreativeTab(tabAltisMine); Cheque4 = new Cheque().setUnlocalizedName("Cheque4").setTextureName("amm:Cheque").setCreativeTab(tabAltisMine); ChestplateB = new Item_TerroristeMaterial2(TerroristeMaterial2, 0, 1).setUnlocalizedName("Gilet par Balle Bleu").setTextureName("amm:Gilet parBalle Bleu").setCreativeTab(tabAltisMine); ChestplateMilitaire = new Item_MilitaireMaterial(MilitaireMaterial, 0, 1).setUnlocalizedName("ChestplateMilitaire").setTextureName("amm:Gilet_Militaire").setCreativeTab(tabAltisMine); ChestplateN = new Item_TerroristeMaterial(TerroristeMaterial,0, 1).setUnlocalizedName("ChestplateN").setTextureName("amm:Gilet parBalle noir").setCreativeTab(tabAltisMine); ChestplateTaxi = new Item_TaxiMaterial(TaxiMaterial, 0, 1).setUnlocalizedName("ChestplateTaxi").setTextureName("amm:Maillot chauffeur de taxi").setCreativeTab(tabAltisMine); Chestplatecrs = new Item_CRSMaterial(CrsMaterial, 0, 1).setUnlocalizedName("Chestplatecrs").setTextureName("amm:Gilet_CRS").setCreativeTab(tabAltisMine); Chestplatecrs2 = new Item_CRSMaterial(CrsMaterial, 0, 1).setUnlocalizedName("Chestplatecrs2").setTextureName("amm:Gilet_CRS").setCreativeTab(tabAltisMine); Chestplatepolice = new Item_PoliceArmor(PoliceMaterial, 0, 1).setUnlocalizedName("Chestplatepolice").setTextureName("amm:Gilet_Police").setCreativeTab(tabAltisMine); Chestplatepompier = new Item_PompierMaterial(PompierMaterial, 0, 1).setUnlocalizedName("Chestplatepompier").setTextureName("amm:MaillotPompier").setCreativeTab(tabAltisMine); Chestplatesamu = new Item_SamuArmor(SamuMaterial, 0, 1).setUnlocalizedName("Chestplatesamu").setTextureName("amm:Veste du samu").setCreativeTab(tabAltisMine); Cigarrette = new Cigarrette().setUnlocalizedName("Cigarrette").setTextureName("amm:Cigarrette").setCreativeTab(tabAltisMine); Cigarre = new Cigarre().setUnlocalizedName("Cigarre").setTextureName("amm:Cigarre").setCreativeTab(tabAltisMine); Cocaine = new Cocaine().setUnlocalizedName("Cocaine").setTextureName("amm:Cocaine").setCreativeTab(tabAltisMine); GhillieBoots = new Item_GhillieMaterial(GhillieMaterial, 0, 3).setUnlocalizedName("GhillieBoots").setTextureName("amm:GhillieBootsGreenicon").setCreativeTab(tabAltisMine); GhillieChestplate = new Item_GhillieMaterial(GhillieMaterial, 0, 1).setUnlocalizedName("GhillieChestplate").setTextureName("amm:GhillieBodyGreenicon").setCreativeTab(tabAltisMine); GhillieHelmet = new Item_GhillieMaterial(GhillieMaterial, 0, 0).setUnlocalizedName("GhillieHelmet").setTextureName("amm:GhillieHelmetGreenicon").setCreativeTab(tabAltisMine); GhillieLeggings = new Item_GhillieMaterial(GhillieMaterial, 0, 2).setUnlocalizedName("GhillieLeggings").setTextureName("amm:GhilliePantsGreenicon").setCreativeTab(tabAltisMine); Gipnboots = new Item_GipnMaterial(GipnMaterial, 0, 3).setUnlocalizedName("Gipnboots").setTextureName("amm:Rangers_GIPN").setCreativeTab(tabAltisMine); Gipnchestplate = new Item_GipnMaterial(GipnMaterial, 0, 1).setUnlocalizedName("Gipnchestplate").setTextureName("amm:Gilet_GIPN").setCreativeTab(tabAltisMine); Gipnhelmet = new Item_GipnMaterial(GipnMaterial, 0, 0).setUnlocalizedName("Gipnhelmet").setTextureName("amm:Casque_GIPN").setCreativeTab(tabAltisMine); Gipnleggings = new Item_GipnMaterial(GipnMaterial, 0, 2).setUnlocalizedName("Gipnleggings").setTextureName("amm:Pentalon_GIPN").setCreativeTab(tabAltisMine); HelmetMilitaire = new Item_MilitaireMaterial(MilitaireMaterial, 0, 0).setUnlocalizedName("HelmetMilitaire").setTextureName("amm:Casque_Militaire").setCreativeTab(tabAltisMine); Helmetcrs = new Item_CRSMaterial(CrsMaterial, 0, 0).setUnlocalizedName("Helmetcrs").setTextureName("amm:Casque_CRS").setCreativeTab(tabAltisMine); Helmetcrs2 = new Item_CRSMaterial2(CrsMaterial2, 0, 0).setUnlocalizedName("Helmetcrs2").setTextureName("amm:Casque_CRS2_").setCreativeTab(tabAltisMine); Joint = new Joint().setUnlocalizedName("Joint").setTextureName("amm:Joint").setCreativeTab(tabAltisMine); LeggingsMilitaire = new Item_MilitaireMaterial(MilitaireMaterial, 0, 2).setUnlocalizedName("LeggingsMilitaire").setTextureName("amm:Pantalon_Militaire").setCreativeTab(tabAltisMine); LeggingsT = new Item_TerroristeMaterial(TerroristeMaterial, 0, 2).setUnlocalizedName("LeggingsT").setTextureName("amm:Pentalon Terroriste").setCreativeTab(tabAltisMine); LeggingsT2 = new Item_TerroristeMaterial2(TerroristeMaterial2, 0, 2).setUnlocalizedName("LeggingsT2").setTextureName("amm:Pentalon Terroriste").setCreativeTab(tabAltisMine); Leggingscrs = new Item_CRSMaterial(CrsMaterial, 0, 2).setUnlocalizedName("Leggingscrs").setTextureName("amm:Pentalon_CRS").setCreativeTab(tabAltisMine); LeggingsTaxi = new Item_TaxiMaterial(TaxiMaterial, 0, 2).setUnlocalizedName("LeggingsTaxi").setTextureName("amm:Pantalon de chauffeur de TAXI").setCreativeTab(tabAltisMine); Leggingscrs2 = new Item_CRSMaterial2(CrsMaterial2, 0, 2).setUnlocalizedName("Leggingscrs2").setTextureName("amm:Pentalon_CRS").setCreativeTab(tabAltisMine); Leggingspolice = new Item_PoliceArmor(PompierMaterial, 0, 2).setUnlocalizedName("Leggingspolice").setTextureName("amm:Pantalon_Police").setCreativeTab(tabAltisMine); Leggingspompier = new Item_PompierMaterial(PompierMaterial, 0, 2).setUnlocalizedName("Leggingspompier").setTextureName("amm:Pantalon des pompiers").setCreativeTab(tabAltisMine); Leggingssamu = new Item_SamuArmor(SamuMaterial, 0, 2).setUnlocalizedName("Leggingssamu").setTextureName("amm:Pantalon du samu").setCreativeTab(tabAltisMine); Loto = new Loto().setUnlocalizedName("Loto").setTextureName("amm:Loto").setCreativeTab(tabAltisMine); Orge = new Orge().setUnlocalizedName("Orge").setTextureName("amm:orge").setCreativeTab(tabAltisMine); PoudreCocaine = new PoudreCocaine().setUnlocalizedName("PoudreCocaine").setTextureName("amm:PoudreCocaine").setCreativeTab(tabAltisMine); RangersT = new Item_TerroristeMaterial(TerroristeMaterial, 0, 3).setUnlocalizedName("RangersT").setTextureName("amm:Rangers Terroristre").setCreativeTab(tabAltisMine); RangersT2 = new Item_TerroristeMaterial2(TerroristeMaterial2, 0, 3).setUnlocalizedName("RangersT2").setTextureName("amm:Rangers Terroristre").setCreativeTab(tabAltisMine); Seringue = new Seringue().setUnlocalizedName("Seringue").setTextureName("amm:Seringue").setCreativeTab(tabAltisMine); Tabac = new Tabac().setUnlocalizedName("Tabac").setTextureName("amm:Tabac").setCreativeTab(tabAltisMine); peche = new ItemFood(2, 0.2F,true).setUnlocalizedName("peche").setTextureName("amm:peche").setCreativeTab(tabAltisMine); credit = new credit().setUnlocalizedName("credit").setTextureName("amm:caret de credit").setCreativeTab(tabAltisMine); plongee = new Itemplongee_Armor(plongeeMaterial, 0, 0).setUnlocalizedName("Masquedeplonge").setTextureName("amm:Masque_de_plonge").setCreativeTab(tabAltisMine); plongee2 = new Itemplongee_Armor(plongeeMaterial, 0, 1).setUnlocalizedName("Giletdeplonge").setTextureName("amm:Gilet_plonge").setCreativeTab(tabAltisMine); plongee3 = new Itemplongee_Armor(plongeeMaterial, 0, 2).setUnlocalizedName("Pantalondeplonge").setTextureName("amm:Pentalon_plonge").setCreativeTab(tabAltisMine); plongee4 = new Itemplongee_Armor(plongeeMaterial, 0, 3).setUnlocalizedName("Palmedeplonge").setTextureName("amm:palme").setCreativeTab(tabAltisMine); Wolf = new ItemWolf(MasqueMaterial, 0, 0).setUnlocalizedName("Wolf").setTextureName("amm:Wolf").setCreativeTab(tabAltisMine); Chains = new ItemChains(MasqueMaterial, 0, 0).setUnlocalizedName("Chains").setTextureName("amm:Chains").setCreativeTab(tabAltisMine); Dallas = new ItemDallas(MasqueMaterial, 0, 0).setUnlocalizedName("Dallas").setTextureName("amm:Dallas").setCreativeTab(tabAltisMine); Hoxton = new ItemHoxton(MasqueMaterial, 0, 0).setUnlocalizedName("Hoxton").setTextureName("amm:Hoxton").setCreativeTab(tabAltisMine); Salade = new ItemFood(1, 0.2F, true).setUnlocalizedName("Salade").setTextureName("amm:Salade").setCreativeTab(tabAltisMine); TurtleE = new TurtleE().setUnlocalizedName("Turtle").setTextureName("amm:Tortue mort").setCreativeTab(tabAltisMine); TurtleC = new TurtleC().setUnlocalizedName("TurtleC").setTextureName("amm:carapace").setCreativeTab(tabAltisMine); TurtleH = new TurtleH().setUnlocalizedName("TurtleH").setTextureName("amm:tete tortue").setCreativeTab(tabAltisMine); RedBull = new RedBull().setUnlocalizedName("redbull").setTextureName("amm:redbull").setCreativeTab(tabAltisMine); RedBullVide = new RedBullVide().setUnlocalizedName("RedBullVide").setTextureName("amm:redbullvide").setCreativeTab(tabAltisMine); //Blocks; ATM = new ATM(Material.rock).setBlockName("ATM").setBlockTextureName("amm:ATM").setHardness(2000F).setResistance(2000F).setCreativeTab(tabAltisMine); ATM2 = new ATM2(Material.rock).setBlockName("ATM2").setBlockTextureName("amm:ATM_face_top2").setHardness(2000F).setResistance(2000F).setCreativeTab(tabAltisMine); BlockCannabis = new BlockCannabis().setBlockName("BlockCannabis").setHardness(4F).setResistance(4F).setBlockTextureName("amm:Block de Cannabis").setCreativeTab(tabAltisMine); BlockCocaine = new BlockCocaine().setBlockName("BlockCocaine").setHardness(4F).setResistance(4F).setBlockTextureName("amm:BlockCocaine").setCreativeTab(tabAltisMine); BlockTabac = new BlockTabac().setBlockName("BlockTabac").setHardness(4F).setResistance(4F).setBlockTextureName("amm:BlockTabac").setCreativeTab(tabAltisMine); PlantationOrge = new PlantationOrge().setBlockName("PlantationOrge").setHardness(4F).setResistance(4F).setBlockTextureName("amm:plantationorge").setCreativeTab(tabAltisMine); Mouchta = new Mouchta(Material.rock).setBlockName("Mouchta").setBlockTextureName("amm:Route").setHardness(2000F).setResistance(2000F).setCreativeTab(tabAltisMine); FPeche = new FPeche(Material.leaves).setBlockName("FPeche").setBlockTextureName("amm:Fpeche").setHardness(0.1F).setResistance(0.1F).setCreativeTab(tabAltisMine); GameRegistry.registerBlock(BlockCannabis, BlockCannabis.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(BlockCocaine, BlockCocaine.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(BlockTabac, BlockTabac.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(FPeche, FPeche.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(ATM, ATM.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(ATM2, ATM2.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(Mouchta, Mouchta.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Kebab, Kebab.getUnlocalizedName().substring(5)); GameRegistry.registerItem(BaretteCannabis, BaretteCannabis.getUnlocalizedName().substring(5)); GameRegistry.registerItem(BootsMilitaire, BootsMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(BootsTaxi, BootsTaxi.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootscrs, Bootscrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Baril, Baril.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Batondefouille, Batondefouille.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Batonrebelle, Batonrebelle.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Biere, Biere.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootscrs2, Bootscrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootspolice, Bootspolice.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootspompier, Bootspompier.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootssamu, Bootssamu.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cagoule, Cagoule.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cagoule2, Cagoule2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(CannabisBrut, CannabisBrut.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cheque, Cheque.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cheque2, Cheque2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cheque3, Cheque3.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cheque4, Cheque4.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ChestplateB, ChestplateB.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ChestplateMilitaire, ChestplateMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ChestplateN, ChestplateN.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ChestplateTaxi, ChestplateTaxi.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatecrs, Chestplatecrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatecrs2, Chestplatecrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatepolice, Chestplatepolice.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatepompier, Chestplatepompier.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatesamu, Chestplatesamu.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cigarrette, Cigarrette.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cigarre, Cigarre.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cocaine, Cocaine.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieBoots, GhillieBoots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieChestplate, GhillieChestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieHelmet, GhillieHelmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieLeggings, GhillieLeggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(CheeseBurger, CheeseBurger.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnboots, Gipnboots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnchestplate, Gipnchestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnhelmet, Gipnhelmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnleggings, Gipnleggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(HelmetMilitaire, HelmetMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Helmetcrs, Helmetcrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Helmetcrs2, Helmetcrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Joint, Joint.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsMilitaire, LeggingsMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsT, LeggingsT.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsT2, LeggingsT2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingscrs, Leggingscrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsTaxi, LeggingsTaxi.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingscrs2, Leggingscrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingspolice, Leggingspolice.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingspompier, Leggingspompier.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingssamu, Leggingssamu.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Loto, Loto.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Orge, Orge.getUnlocalizedName().substring(5)); GameRegistry.registerItem(PoudreCocaine, PoudreCocaine.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(PlantationOrge, PlantationOrge.getUnlocalizedName().substring(5)); GameRegistry.registerItem(RangersT, RangersT.getUnlocalizedName().substring(5)); GameRegistry.registerItem(RangersT2, RangersT2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Seringue, Seringue.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Tabac, Tabac.getUnlocalizedName().substring(5)); GameRegistry.registerItem(credit, credit.getUnlocalizedName().substring(5)); GameRegistry.registerItem(peche, peche.getUnlocalizedName().substring(5)); GameRegistry.registerItem(plongee, plongee.getUnlocalizedName().substring(5)); GameRegistry.registerItem(plongee2, plongee2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(plongee3, plongee3.getUnlocalizedName().substring(5)); GameRegistry.registerItem(plongee4, plongee4.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Wolf, Wolf.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chains, Chains.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Dallas, Dallas.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Hoxton, Hoxton.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Salade, Salade.getUnlocalizedName().substring(5)); GameRegistry.registerItem(TurtleE, TurtleE.getUnlocalizedName().substring(5)); GameRegistry.registerItem(TurtleC, TurtleC.getUnlocalizedName().substring(5)); GameRegistry.registerItem(TurtleH, TurtleH.getUnlocalizedName().substring(5)); GameRegistry.registerItem(RedBull, RedBull.getUnlocalizedName().substring(5)); GameRegistry.registerItem(RedBullVide, RedBullVide.getUnlocalizedName().substring(5)); proxy.RenderInformation(); EntityRegistry.registerGlobalEntityID(EntityTurtleMob.class, "Tutle", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.findGlobalUniqueEntityId(); registerEntityEgg(EntityTurtleMob.class, 0x40501c, 0x5a4623); } private void registerEntityEgg(Class entity, int primaryColor, int secondaryColor) { int id = getUniqueEntityId(); EntityList.IDtoClassMapping.put(7827, EntityTurtleMob.class); EntityList.entityEggs.put(7827, new EntityEggInfo(7827, primaryColor, secondaryColor)); } private int getUniqueEntityId() { do { startEntityId++; } while(EntityList.getStringFromID(7827) != null); return startEntityId++; } @EventHandler public void init(FMLInitializationEvent event) { proxy.init(event); //Proxy: } @EventHandler public void postInit(FMLPostInitializationEvent event) { proxy.postInit(event); } public static CreativeTabs tabAltisMine = new CreativeTabs("tabAltisMine"){ @Override public Item getTabIconItem(){ return new ItemStack(Kebab).getItem(); } }; }
ClientProxy:
package com.AltisMine.mod; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent e) { // TODO Auto-generated method stub super.preInit(e); } @Override public void init(FMLInitializationEvent e) { // TODO Auto-generated method stub super.init(e); } @Override public void postInit(FMLPostInitializationEvent e) { // TODO Auto-generated method stub super.postInit(e); } }
ServerProxy:
package com.AltisMine.mod; import com.AltisMine.mob.Turtle; import com.AltisMine.mod.entity.EntityTurtleMob; import com.AltisMine.mod.render.RenderTurtleMob; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; public class ServerProxy extends CommonProxy{ @Override public void preInit(FMLPreInitializationEvent e) { super.preInit(e); } @Override public void init(FMLInitializationEvent e) { super.init(e); } @Override public void postInit(FMLPostInitializationEvent e) { super.postInit(e); } }
CommonProxy:
package com.AltisMine.mod; import com.AltisMine.mob.Turtle; import com.AltisMine.mod.entity.EntityTurtleMob; import com.AltisMine.mod.render.RenderTurtleMob; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; public class CommonProxy { public void preInit(FMLPreInitializationEvent e) { } public void init(FMLInitializationEvent e) { } public void postInit(FMLPostInitializationEvent e) { } public static void RenderInformation() { RenderingRegistry.registerEntityRenderingHandler(EntityTurtleMob.class, new RenderTurtleMob(new Turtle(), 0)); } }
-
Dans CommonProxy retires ça :
public static void RenderInformation() {RenderingRegistry.registerEntityRenderingHandler(EntityTurtleMob.class, new RenderTurtleMob(new Turtle(), 0));
}Dans ta classe principale retires cette ligne :
proxy.RenderInformation();
Et ensuite dans la fonction init de ta classe ClientProxy mets ça :
RenderingRegistry.registerEntityRenderingHandler(EntityTurtleMob.class, new RenderTurtleMob(new Turtle(), 0)); -
D’accord j’essaye ca___C’est bon niquel merci
-
Balise résolu ?
PS : y’a des balises java pour mettre ton code dedans.
PS 2 : 24h minimum entre 2 messages. -
Juste une dernière question: c’est possible de jouer un son avec une touche de clavier au lieux d’un clic droit ?
-
Oui c’est possible. Et je suis presque sûr que la question a déjà été posé, il suffit de chercher. Il y a aussi un tutoriel sur les touches sur le forum.