public abstract class AbstractFurnaceTileEntity extends LockableTileEntity implements ISidedInventory, IRecipeHolder, IRecipeHelperPopulator, ITickableTileEntity
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected IIntArray |
furnaceData |
protected NonNullList<ItemStack> |
items |
protected IRecipeType<? extends AbstractCookingRecipe> |
recipeType |
pos, removed, worldINFINITE_EXTENT_AABB| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
AbstractFurnaceTileEntity(TileEntityType<?> tileTypeIn,
IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canExtractItem(int index,
ItemStack stack,
Direction direction)
Returns true if automation can extract the given item in the given slot from the given side.
|
boolean |
canInsertItem(int index,
ItemStack itemStackIn,
Direction direction)
Returns true if automation can insert the given item in the given slot from the given side.
|
protected boolean |
canSmelt(IRecipe<?> recipeIn) |
void |
clear() |
ItemStack |
decrStackSize(int index,
int count)
Removes up to a specified number of items from an inventory slot and returns them in a new stack.
|
void |
fillStackedContents(RecipeItemHelper helper) |
void |
func_213995_d(PlayerEntity p_213995_1_) |
protected int |
getBurnTime(ItemStack p_213997_1_) |
static java.util.Map<Item,java.lang.Integer> |
getBurnTimes()
非推奨です。
|
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
protected int |
getCookTime() |
IRecipe<?> |
getRecipeUsed() |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
int[] |
getSlotsForFace(Direction side) |
ItemStack |
getStackInSlot(int index)
Returns the stack in the given slot.
|
boolean |
isEmpty() |
static boolean |
isFuel(ItemStack p_213991_0_) |
boolean |
isItemValidForSlot(int index,
ItemStack stack)
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
|
boolean |
isUsableByPlayer(PlayerEntity player)
Don't rename this method to canInteractWith due to conflicts with Container
|
void |
onCrafting(PlayerEntity player) |
void |
read(CompoundNBT compound) |
void |
remove()
invalidates a tile entity
|
ItemStack |
removeStackFromSlot(int index)
Removes a stack from the given slot and returns it.
|
void |
setInventorySlotContents(int index,
ItemStack stack)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
|
void |
setRecipeUsed(IRecipe<?> recipe) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, canUnlock, createMenu, createMenu, createUnSidedHandler, getCustomName, getDefaultName, getDisplayName, getName, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseInventory, count, getInventoryStackLimit, hasAny, markDirty, openInventoryclearObjcanUseRecipehasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprotected NonNullList<ItemStack> items
protected final IIntArray furnaceData
protected final IRecipeType<? extends AbstractCookingRecipe> recipeType
protected AbstractFurnaceTileEntity(TileEntityType<?> tileTypeIn, IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn)
@Deprecated public static java.util.Map<Item,java.lang.Integer> getBurnTimes()
public void read(CompoundNBT compound)
read クラス内 LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 LockableTileEntitypublic void tick()
tick インタフェース内 ITickableTileEntityprotected boolean canSmelt(@Nullable
IRecipe<?> recipeIn)
protected int getBurnTime(ItemStack p_213997_1_)
protected int getCookTime()
public static boolean isFuel(ItemStack p_213991_0_)
public int[] getSlotsForFace(Direction side)
getSlotsForFace インタフェース内 ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem インタフェース内 ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem インタフェース内 ISidedInventorypublic int getSizeInventory()
getSizeInventory インタフェース内 IInventorypublic boolean isEmpty()
isEmpty インタフェース内 IInventorypublic ItemStack getStackInSlot(int index)
getStackInSlot インタフェース内 IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize インタフェース内 IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot インタフェース内 IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents インタフェース内 IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer インタフェース内 IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot インタフェース内 IInventorypublic void clear()
clear インタフェース内 IClearablepublic void setRecipeUsed(@Nullable
IRecipe<?> recipe)
setRecipeUsed インタフェース内 IRecipeHolder@Nullable public IRecipe<?> getRecipeUsed()
getRecipeUsed インタフェース内 IRecipeHolderpublic void onCrafting(PlayerEntity player)
onCrafting インタフェース内 IRecipeHolderpublic void func_213995_d(PlayerEntity p_213995_1_)
public void fillStackedContents(RecipeItemHelper helper)
fillStackedContents インタフェース内 IRecipeHelperPopulatorpublic <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvidergetCapability インタフェース内 ICapabilityProvidergetCapability クラス内 LockableTileEntitypublic void remove()
remove クラス内 LockableTileEntity