public class ServerRecipePlacer<C extends IInventory> extends java.lang.Object implements IRecipePlacer<java.lang.Integer>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER |
protected PlayerInventory |
playerInventory |
protected RecipeBookContainer<C> |
recipeBookContainer |
protected RecipeItemHelper |
recipeItemHelper |
| コンストラクタと説明 |
|---|
ServerRecipePlacer(RecipeBookContainer<C> p_i50752_1_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
clear() |
protected void |
consumeIngredient(Slot slotToFill,
ItemStack ingredientIn) |
protected int |
getMaxAmount(boolean placeAll,
int maxPossible,
boolean recipeMatches) |
protected void |
giveToPlayer(int slotIn) |
void |
place(ServerPlayerEntity player,
IRecipe<C> recipe,
boolean placeAll) |
void |
setSlotContents(java.util.Iterator<java.lang.Integer> ingredients,
int slotIn,
int maxAmount,
int y,
int x) |
protected void |
tryPlaceRecipe(IRecipe<C> recipe,
boolean placeAll) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitplaceRecipeprotected static final org.apache.logging.log4j.Logger LOGGER
protected final RecipeItemHelper recipeItemHelper
protected PlayerInventory playerInventory
protected RecipeBookContainer<C extends IInventory> recipeBookContainer
public ServerRecipePlacer(RecipeBookContainer<C> p_i50752_1_)
public void place(ServerPlayerEntity player, @Nullable IRecipe<C> recipe, boolean placeAll)
protected void clear()
protected void giveToPlayer(int slotIn)
public void setSlotContents(java.util.Iterator<java.lang.Integer> ingredients,
int slotIn,
int maxAmount,
int y,
int x)
setSlotContents インタフェース内 IRecipePlacer<java.lang.Integer>protected int getMaxAmount(boolean placeAll,
int maxPossible,
boolean recipeMatches)