public abstract class AmadronRecipe extends PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory| Modifier | Constructor and Description |
|---|---|
protected |
AmadronRecipe(net.minecraft.util.ResourceLocation id)
Construct a new offer.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AmadronTradeResource |
getInput()
Get the offer's input, i.e.
|
abstract int |
getMaxStock()
Get the maximum (initial) stock level for this offer.
|
abstract AmadronTradeResource |
getOutput()
Get the offer's output, i.e.
|
abstract int |
getStock()
Get the number of trades Amadron currently has in stock for this offer.
|
abstract int |
getTradeLevel()
The rarity for villager and periodic trades, in the range of 1 (common) to 5 (very rare)
|
abstract java.lang.String |
getVendor()
Get the offer's vendor name, for display purposes.
|
boolean |
isRemovableBy(net.minecraft.entity.player.PlayerEntity player)
Can this offer be removed by the given player?
|
abstract boolean |
isStaticOffer()
Is this a static offer, always displayed on the Amadron tablet? Or periodic, shuffled in at random once per
Minecraft day (by default) ?
|
boolean |
passesQuery(java.lang.String query)
Does this offer match the given query string? The input resource, output resource and vendor names are all
tested (case-insensitive) for the query.
|
abstract void |
setStock(int stock)
Update the number of trades Amadron currently has in stock for this offer.
|
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matches, writeprotected AmadronRecipe(net.minecraft.util.ResourceLocation id)
id - the unique recipe IDpublic abstract AmadronTradeResource getInput()
public abstract AmadronTradeResource getOutput()
public abstract java.lang.String getVendor()
public abstract boolean isStaticOffer()
public abstract int getTradeLevel()
public abstract int getStock()
public abstract void setStock(int stock)
getMaxStock() (provided that the max stock level is > 0).stock - the new stock levelpublic abstract int getMaxStock()
public boolean isRemovableBy(net.minecraft.entity.player.PlayerEntity player)
player - the playerpublic final boolean passesQuery(java.lang.String query)
query - the query string