Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💎 Copper and Brass Pipes are now made through metalcasting
- Loading branch information
Showing
6 changed files
with
56 additions
and
32 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
12 changes: 7 additions & 5 deletions
12
src/main/java/eiteam/esteemedinnovation/init/items/MetalcastingItems.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
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
34 changes: 34 additions & 0 deletions
34
src/main/java/eiteam/esteemedinnovation/item/ItemPipeMold.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,34 @@ | ||
package eiteam.esteemedinnovation.item; | ||
|
||
import eiteam.esteemedinnovation.api.crucible.CrucibleLiquid; | ||
import eiteam.esteemedinnovation.api.crucible.CrucibleRegistry; | ||
import eiteam.esteemedinnovation.api.mold.ICrucibleMold; | ||
import eiteam.esteemedinnovation.init.items.MetalcastingItems; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.ResourceLocation; | ||
|
||
public class ItemPipeMold extends Item implements ICrucibleMold { | ||
@Override | ||
public ResourceLocation getBlockTexture() { | ||
// TODO: Proper texture for this mold | ||
return ((ICrucibleMold)MetalcastingItems.Items.INGOT_MOLD.getItem()).getBlockTexture(); | ||
} | ||
|
||
@Override | ||
public boolean canUseOn(CrucibleLiquid liquid) { | ||
return liquid != null && CrucibleRegistry.pipeLiquids.containsKey(liquid); | ||
} | ||
|
||
@Override | ||
public ItemStack getItemFromLiquid(CrucibleLiquid liquid) { | ||
ItemStack newStack = CrucibleRegistry.pipeLiquids.get(liquid).copy(); | ||
newStack.stackSize = 1; | ||
return newStack; | ||
} | ||
|
||
@Override | ||
public int getCostToMold(CrucibleLiquid liquid) { | ||
return 54; | ||
} | ||
} |
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