public class CraftingOptionGuiData<T,M>
extends java.lang.Object
| Constructor and Description |
|---|
CraftingOptionGuiData(net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> component,
java.lang.String tabName,
int channel,
HandlerWrappedTerminalCraftingOption<T> craftingOption,
int amount,
HandlerWrappedTerminalCraftingPlan craftingPlan) |
| Modifier and Type | Method and Description |
|---|---|
static <T,M> CraftingOptionGuiData<T,M> |
copyWithAmount(CraftingOptionGuiData<T,M> craftingOptionGuiData,
int amount) |
int |
getAmount() |
int |
getChannel() |
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> |
getComponent() |
HandlerWrappedTerminalCraftingOption<T> |
getCraftingOption() |
HandlerWrappedTerminalCraftingPlan |
getCraftingPlan() |
net.minecraft.util.math.BlockPos |
getPos() |
net.minecraft.util.Direction |
getSide() |
java.lang.String |
getTabName() |
static CraftingOptionGuiData |
readFromPacketBuffer(net.minecraft.network.PacketBuffer packetBuffer) |
void |
writeToPacketBuffer(net.minecraft.network.PacketBuffer packetBuffer) |
public CraftingOptionGuiData(net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> component,
java.lang.String tabName,
int channel,
@Nullable
HandlerWrappedTerminalCraftingOption<T> craftingOption,
int amount,
HandlerWrappedTerminalCraftingPlan craftingPlan)
public net.minecraft.util.math.BlockPos getPos()
public net.minecraft.util.Direction getSide()
public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> getComponent()
public java.lang.String getTabName()
public int getChannel()
@Nullable public HandlerWrappedTerminalCraftingOption<T> getCraftingOption()
public int getAmount()
@Nullable public HandlerWrappedTerminalCraftingPlan getCraftingPlan()
public void writeToPacketBuffer(net.minecraft.network.PacketBuffer packetBuffer)
public static CraftingOptionGuiData readFromPacketBuffer(net.minecraft.network.PacketBuffer packetBuffer)
public static <T,M> CraftingOptionGuiData<T,M> copyWithAmount(CraftingOptionGuiData<T,M> craftingOptionGuiData, int amount)