generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
84 additions
and
22 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
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
50 changes: 50 additions & 0 deletions
50
src/main/java/org/hiedacamellia/whispergrove/core/util/ItemStackHolder.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,50 @@ | ||
package org.hiedacamellia.whispergrove.core.util; | ||
|
||
import net.minecraft.world.item.ItemStack; | ||
import org.hiedacamellia.whispergrove.api.viscera.VisceraHolder; | ||
import org.hiedacamellia.whispergrove.registers.WGDataComponent; | ||
|
||
public class ItemStackHolder { | ||
private ItemStack itemStack; | ||
|
||
public ItemStackHolder(ItemStack itemStack) { | ||
this.itemStack = itemStack; | ||
} | ||
|
||
public ItemStackHolder() { | ||
this.itemStack = ItemStack.EMPTY; | ||
} | ||
|
||
public ItemStack getItemStack() { | ||
return itemStack; | ||
} | ||
|
||
public void setItemStack(ItemStack itemStack) { | ||
this.itemStack = itemStack; | ||
} | ||
|
||
public boolean isEmpty() { | ||
return itemStack.isEmpty(); | ||
} | ||
|
||
public void setHeart(VisceraHolder holder) { | ||
itemStack.set(WGDataComponent.HEART.get(), holder.toHeart()); | ||
} | ||
|
||
public void setKidney(VisceraHolder holder){ | ||
itemStack.set(WGDataComponent.KIDNEY.get(), holder.toKidney()); | ||
} | ||
|
||
public void setLiver(VisceraHolder holder){ | ||
itemStack.set(WGDataComponent.LIVER.get(), holder.toLiver()); | ||
} | ||
|
||
public void setLung(VisceraHolder holder){ | ||
itemStack.set(WGDataComponent.LUNG.get(), holder.toLung()); | ||
} | ||
|
||
public void setSpleen(VisceraHolder holder){ | ||
itemStack.set(WGDataComponent.SPLEEN.get(), holder.toSpleen()); | ||
} | ||
|
||
} |
Binary file modified
BIN
+144 Bytes
(190%)
src/main/resources/assets/whispergrove/textures/item/soup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.