HowToAddItemsStendhal: Difference between revisions

Content deleted Content added
imported>Kymara
imported>Kymara
Line 108:
 
= Register the class =
Usually you need to register your item class unless it really does nothing. If you're adding an item which is like what we already have (i.e. just a new shield) it's done for you, the shield class is registered. Add your item with type (item), class and subclass to the rest in ''src/games/stendhal/client/entity/factory/EntityMap.java''
 
register("item",null,Item.class);