Modifier and Type | Method and Description |
---|---|
default @Nullable ItemStack |
getInputEquipment()
Gets the input equipment (first slot).
|
default @Nullable ItemStack |
getInputMineral()
Gets the input mineral (second slot).
|
@Nullable Recipe |
getRecipe()
Get the current recipe formed on the smithing table, if any.
|
@Nullable ItemStack |
getResult()
Check what item is in the result slot of this smithing table.
|
default void |
setInputEquipment(@Nullable ItemStack itemStack)
Sets the input equipment (first slot).
|
default void |
setInputMineral(@Nullable ItemStack itemStack)
Sets the input mineral (second slot).
|
void |
setResult(@Nullable ItemStack newResult)
Set the item in the result slot of the smithing table
|
addItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContents
forEach, spliterator
@Nullable @Nullable ItemStack getResult()
void setResult(@Nullable @Nullable ItemStack newResult)
newResult
- the new result item@Nullable @Nullable Recipe getRecipe()
@Nullable default @Nullable ItemStack getInputEquipment()
default void setInputEquipment(@Nullable @Nullable ItemStack itemStack)
itemStack
- item to set@Nullable default @Nullable ItemStack getInputMineral()
Copyright © 2021. All rights reserved.