Rewrite/review of items management
@ -1,13 +1,16 @@
|
|||||||
package fr.jackcartersmith.orbsat;
|
package fr.jackcartersmith.orbsat;
|
||||||
|
|
||||||
|
import fr.jackcartersmith.orbsat.item.DesignatorCircuitItem;
|
||||||
import fr.jackcartersmith.orbsat.item.LaserDesignatorItem;
|
import fr.jackcartersmith.orbsat.item.LaserDesignatorItem;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
public class OSItems {
|
public class OSItems {
|
||||||
|
|
||||||
public static Item laserDesignator_mkI;
|
public static Item laserDesignator;
|
||||||
|
public static Item designatorCircuit;
|
||||||
|
|
||||||
public static void init(){
|
public static void init(){
|
||||||
laserDesignator_mkI = new LaserDesignatorItem("laserDesignator_mki");
|
laserDesignator = new LaserDesignatorItem("laserDesignator");
|
||||||
|
designatorCircuit = new DesignatorCircuitItem("designatorCircuit");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ public class OrbitalSatellite {
|
|||||||
@Override
|
@Override
|
||||||
public ItemStack getIconItemStack()
|
public ItemStack getIconItemStack()
|
||||||
{
|
{
|
||||||
return new ItemStack(OSItems.laserDesignator_mkI,1,0);
|
return new ItemStack(OSItems.designatorCircuit,1,0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
package fr.jackcartersmith.orbsat.item;
|
||||||
|
|
||||||
|
import fr.jackcartersmith.orbsat.OSRefs;
|
||||||
|
import fr.jackcartersmith.orbsat.OrbitalSatellite;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
public class DesignatorCircuitItem extends Item{
|
||||||
|
public DesignatorCircuitItem(String unlocalizedName){
|
||||||
|
this.setUnlocalizedName(unlocalizedName);
|
||||||
|
this.setCreativeTab(OrbitalSatellite.creativeTab);
|
||||||
|
OrbitalSatellite.register(this, unlocalizedName);
|
||||||
|
OSRefs.registeredOSItems.add(this);
|
||||||
|
}
|
||||||
|
}
|
@ -8,6 +8,7 @@ public class LaserDesignatorItem extends Item {
|
|||||||
|
|
||||||
public LaserDesignatorItem(String unlocalizedName){
|
public LaserDesignatorItem(String unlocalizedName){
|
||||||
this.setUnlocalizedName(unlocalizedName);
|
this.setUnlocalizedName(unlocalizedName);
|
||||||
|
this.setMaxStackSize(1);
|
||||||
this.setCreativeTab(OrbitalSatellite.creativeTab);
|
this.setCreativeTab(OrbitalSatellite.creativeTab);
|
||||||
OrbitalSatellite.register(this, unlocalizedName);
|
OrbitalSatellite.register(this, unlocalizedName);
|
||||||
OSRefs.registeredOSItems.add(this);
|
OSRefs.registeredOSItems.add(this);
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
package fr.jackcartersmith.orbsat.item;
|
||||||
|
|
||||||
|
import fr.jackcartersmith.orbsat.OSRefs;
|
||||||
|
import fr.jackcartersmith.orbsat.OrbitalSatellite;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
public class SatelliteItem extends Item{
|
||||||
|
public SatelliteItem(String unlocalizedName){
|
||||||
|
this.setUnlocalizedName(unlocalizedName);
|
||||||
|
this.setCreativeTab(OrbitalSatellite.creativeTab);
|
||||||
|
this.setHasSubtypes(true);
|
||||||
|
this.setMaxStackSize(1);
|
||||||
|
OrbitalSatellite.register(this, unlocalizedName);
|
||||||
|
OSRefs.registeredOSItems.add(this);
|
||||||
|
}
|
||||||
|
}
|
@ -1,23 +1,5 @@
|
|||||||
#item.item_ob_lense.name=Laser Lens
|
|
||||||
#item.item_ob_condenser.name=Photon Condenser
|
|
||||||
#item.item_ob_capacitor.name=Photon Capacitor
|
|
||||||
#item.item_ob_designatorLow.name=Low Power Designator
|
|
||||||
#item.item_ob_designatorMed.name=Medium Power Designator
|
|
||||||
#item.item_ob_designatorHigh.name=High Power Designator
|
|
||||||
#item.item_ob_laserGunLow.name=Low Power Laser Gun
|
|
||||||
#item.item_ob_laserGunMed.name=Medium Power Laser Gun
|
|
||||||
#item.item_ob_laserGunHigh.name=High Power Laser Gun
|
|
||||||
#tile.obOverrider.name=Laser Satelite Overrider
|
|
||||||
#tile.obExtender.name=Extender
|
|
||||||
#tile.obSatelite.name=Laser Satelite Prototype LX-I
|
|
||||||
#tile.obDefender.name=Laser Strike Defender
|
|
||||||
#tile.obAccelerator.name=Photon Accelerator
|
|
||||||
#tile.obDecelerator.name=Photon Deccelerator
|
|
||||||
#tile.obInverterAdv.name=Advanced Photonic Converter
|
|
||||||
#tile.obInverter.name=Photonic Converter
|
|
||||||
|
|
||||||
#CreativeTabs
|
#CreativeTabs
|
||||||
itemGroup.orbsat.name=Orbital Satellite
|
itemGroup.orbsat=Orbital Satellite
|
||||||
|
|
||||||
#Items
|
#Items
|
||||||
item.laserDesignator_mki.name=Laser Designator MK-I
|
item.laserDesignator.name=Targeting Satellite Computer
|
||||||
|
item.designatorCircuit.name=Targeting Computer Circuit
|
@ -1,23 +1,5 @@
|
|||||||
#item.item_ob_lense.name=Lentille
|
|
||||||
#item.item_ob_condenser.name=Condensateur Photonique
|
|
||||||
#item.item_ob_capacitor.name=Capaciteur Photonique
|
|
||||||
#item.item_ob_designatorLow.name=Designateur Faible Puissance
|
|
||||||
#item.item_ob_designatorMed.name=Designateur Moyenne Puissance
|
|
||||||
#item.item_ob_designatorHigh.name=Designateur Haute Puissance
|
|
||||||
#item.item_ob_laserGunLow.name=Pointeur Laser Faible Puissance
|
|
||||||
#item.item_ob_laserGunMed.name=Pointeur Laser Moyenne Puissance
|
|
||||||
#item.item_ob_laserGunHigh.name=Pointeur Laser Haute Puissance
|
|
||||||
#tile.obOverrider.name=Chargeur de Satellite Laser
|
|
||||||
#tile.obExtender.name=Extendeur
|
|
||||||
#tile.obSatelite.name=Prototype de Satellite Laser LX-I
|
|
||||||
#tile.obDefender.name=Defenseur Laser
|
|
||||||
#tile.obAccelerator.name=Accelerateur de photon
|
|
||||||
#tile.obDecelerator.name=Decelerateur de photon
|
|
||||||
#tile.obInverterAdv.name=Convertisseur photonique avancé
|
|
||||||
#tile.obInverter.name=Convertisseur photonique
|
|
||||||
|
|
||||||
#CreativeTabs
|
#CreativeTabs
|
||||||
itemGroup.orbsat.name=Satellite Orbital
|
itemGroup.orbsat=Satellite Orbital
|
||||||
|
|
||||||
#Items
|
#Items
|
||||||
item.laserDesignator_mki.name=Pointeur Laser MK-I
|
item.laserDesignator.name=Ordinateur de visée du satellite
|
||||||
|
item.designatorCircuit.name=Circuit pour ordinateur de visée
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "orbsat:item/flat",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "orbsat:items/designatorCircuit"
|
||||||
|
}
|
||||||
|
}
|
6
src/main/resources/assets/orbsat/models/item/flat.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "missingno"
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "orbsat:items/laserDesignator_mki"
|
"layer0": "orbsat:items/laserDesignator"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,61 +2,61 @@
|
|||||||
"defenderLock": {
|
"defenderLock": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"defenderLock"
|
"orbsat:defenderLock"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"start": {
|
"start": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"start"
|
"orbsat:start"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"middle": {
|
"middle": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"middle"
|
"orbsat:middle"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"satelliteLaunch": {
|
"satelliteLaunch": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"satelliteLaunch"
|
"orbsat:satelliteLaunch"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"explode": {
|
"explode": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"explode"
|
"orbsat:explode"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"reentry": {
|
"reentry": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"reentry"
|
"orbsat:reentry"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"booming": {
|
"booming": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"booming"
|
"orbsat:booming"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"digging": {
|
"digging": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"digging"
|
"orbsat:digging"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"startCharging": {
|
"startCharging": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"startCharging"
|
"orbsat:startCharging"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"helios": {
|
"helios": {
|
||||||
"category": "block",
|
"category": "block",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"helios"
|
"orbsat:helios"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"animation": {
|
||||||
|
"frametime": 1,
|
||||||
|
"frames": [
|
||||||
|
{ "index": 0, "time": 2 },
|
||||||
|
{ "index": 1, "time": 2 },
|
||||||
|
{ "index": 2, "time": 2 },
|
||||||
|
{ "index": 3, "time": 2 },
|
||||||
|
{ "index": 4, "time": 2 },
|
||||||
|
{ "index": 5, "time": 2 },
|
||||||
|
{ "index": 6, "time": 2 },
|
||||||
|
{ "index": 7, "time": 2 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 612 B |
Before Width: | Height: | Size: 863 B |
Before Width: | Height: | Size: 842 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 343 B |