-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: marisathewitch <[email protected]>
- Loading branch information
1 parent
eeffbe3
commit 8446f08
Showing
9 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
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 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
29 changes: 29 additions & 0 deletions
29
src/main/java/com/nomiceu/nomilabs/gregtech/item/LabsMetaItem.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.nomiceu.nomilabs.gregtech.item; | ||
|
||
import static com.nomiceu.nomilabs.gregtech.item.LabsMetaItems.*; | ||
import static gregtech.api.GTValues.*; | ||
|
||
import com.nomiceu.nomilabs.creativetab.registry.LabsCreativeTabs; | ||
import com.nomiceu.nomilabs.gregtech.mixinhelper.BucketItemFluidContainer; | ||
|
||
import gregtech.api.items.metaitem.FilteredFluidStats; | ||
import gregtech.api.items.metaitem.StandardMetaItem; | ||
import gregtech.api.unification.material.Materials; | ||
import gregtech.api.unification.material.properties.PropertyKey; | ||
import gregtech.api.unification.stack.ItemMaterialInfo; | ||
import gregtech.api.unification.stack.MaterialStack; | ||
|
||
public class LabsMetaItem extends StandardMetaItem { | ||
|
||
@Override | ||
public void registerSubItems() { | ||
BRONZE_CELL = addItem(0, "bronze_cell") | ||
.addComponents( | ||
new FilteredFluidStats(8000, | ||
Materials.Bronze.getProperty(PropertyKey.FLUID_PIPE).getMaxFluidTemperature(), | ||
true, false, false, false, true), | ||
new BucketItemFluidContainer()) | ||
.setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Bronze, M * 4))) | ||
.setCreativeTabs(LabsCreativeTabs.TAB_NOMI_LABS); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/nomiceu/nomilabs/gregtech/item/LabsMetaItems.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.nomiceu.nomilabs.gregtech.item; | ||
|
||
import com.nomiceu.nomilabs.util.LabsNames; | ||
|
||
import gregtech.api.items.metaitem.MetaItem; | ||
|
||
public class LabsMetaItems { | ||
|
||
public static MetaItem<?>.MetaValueItem BRONZE_CELL; | ||
|
||
public static void preInit() { | ||
LabsMetaItem metaItem = new LabsMetaItem(); | ||
metaItem.setRegistryName(LabsNames.makeLabsName("meta_item")); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/resources/assets/gregtech/blockstates/metaitems/bronze_cell.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"forge_marker": 1, | ||
"variants": { | ||
"inventory": { | ||
"model": "forge:forgebucket", | ||
"textures": { | ||
"base": "gregtech:items/metaitems/bronze_cell/base", | ||
"fluid": "gregtech:items/metaitems/bronze_cell/overlay", | ||
"cover": "gregtech:items/metaitems/bronze_cell/base" | ||
}, | ||
"transform": "forge:default-item" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#-----------------Meta Items-----------------# | ||
metaitem.bronze_cell.name=%s Bronze Cell |
Binary file added
BIN
+272 Bytes
src/main/resources/assets/gregtech/textures/items/metaitems/bronze_cell/base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+134 Bytes
...main/resources/assets/gregtech/textures/items/metaitems/bronze_cell/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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