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, world
INFINITE_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, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeInventory, count, getInventoryStackLimit, hasAny, markDirty, openInventory
clearObj
canUseRecipe
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
protected 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
クラス内 LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 LockableTileEntity
public void tick()
tick
インタフェース内 ITickableTileEntity
protected 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
インタフェース内 ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
インタフェース内 ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
インタフェース内 ISidedInventory
public int getSizeInventory()
getSizeInventory
インタフェース内 IInventory
public boolean isEmpty()
isEmpty
インタフェース内 IInventory
public ItemStack getStackInSlot(int index)
getStackInSlot
インタフェース内 IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
インタフェース内 IInventory
public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
インタフェース内 IInventory
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
インタフェース内 IInventory
public boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer
インタフェース内 IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
インタフェース内 IInventory
public void clear()
clear
インタフェース内 IClearable
public void setRecipeUsed(@Nullable IRecipe<?> recipe)
setRecipeUsed
インタフェース内 IRecipeHolder
@Nullable public IRecipe<?> getRecipeUsed()
getRecipeUsed
インタフェース内 IRecipeHolder
public void onCrafting(PlayerEntity player)
onCrafting
インタフェース内 IRecipeHolder
public void func_213995_d(PlayerEntity p_213995_1_)
public void fillStackedContents(RecipeItemHelper helper)
fillStackedContents
インタフェース内 IRecipeHelperPopulator
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
インタフェース内 ICapabilityProvider
getCapability
クラス内 LockableTileEntity
public void remove()
remove
クラス内 LockableTileEntity