类 AbstractFurnaceBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity
- 所有已实现的接口:
Iterable<ItemStack>
,Clearable
,Container
,MenuConstructor
,RecipeCraftingHolder
,StackedContentsCompatible
,MenuProvider
,Nameable
,WorldlyContainer
,IAttachmentHolder
,IBlockEntityExtension
,IMenuProviderExtension
public abstract class AbstractFurnaceBlockEntity
extends BaseContainerBlockEntity
implements WorldlyContainer, RecipeCraftingHolder, StackedContentsCompatible
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.Container
Container.ContainerIterator
-
字段概要
字段修饰符和类型字段说明static final int
static final int
(专用程序包) int
(专用程序包) int
static final int
static final int
static final int
static final int
protected final ContainerData
private static final short
private static final short
private static final short
private static final short
protected NonNullList
<ItemStack> (专用程序包) int
(专用程序包) int
static final int
private final RecipeManager.CachedCheck
<SingleRecipeInput, ? extends AbstractCookingRecipe> private static final com.mojang.serialization.Codec
<Map<ResourceKey<Recipe<?>>, Integer>> private final it.unimi.dsi.fastutil.objects.Reference2IntOpenHashMap
<ResourceKey<Recipe<?>>> private final RecipeType
<? extends AbstractCookingRecipe> protected static final int
protected static final int
protected static final int
private static final int[]
private static final int[]
private static final int[]
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
构造器概要
构造器限定符构造器说明protected
AbstractFurnaceBlockEntity
(BlockEntityType<?> p_154991_, BlockPos p_154992_, BlockState p_154993_, RecipeType<? extends AbstractCookingRecipe> p_154994_) -
方法概要
修饰符和类型方法说明void
awardUsedRecipes
(Player p_58396_, List<ItemStack> p_282202_) void
awardUsedRecipesAndPopExperience
(ServerPlayer p_155004_) private static boolean
burn
(RegistryAccess p_266740_, RecipeHolder<? extends AbstractCookingRecipe> p_300910_, SingleRecipeInput p_380269_, NonNullList<ItemStack> p_267073_, int p_267157_) private static boolean
canBurn
(RegistryAccess p_266924_, RecipeHolder<? extends AbstractCookingRecipe> p_301107_, SingleRecipeInput p_380038_, NonNullList<ItemStack> p_155007_, int p_155008_) boolean
canPlaceItem
(int p_58389_, ItemStack p_58390_) boolean
canPlaceItemThroughFace
(int p_58336_, ItemStack p_58337_, Direction p_58338_) boolean
canTakeItemThroughFace
(int p_58392_, ItemStack p_58393_, Direction p_58394_) private static void
createExperience
(ServerLevel p_154999_, Vec3 p_155000_, int p_155001_, float p_155002_) void
fillStackedContents
(StackedItemContents p_363281_) protected int
getBurnDuration
(FuelValues p_363501_, ItemStack p_58343_) int
protected NonNullList
<ItemStack> getItems()
List
<RecipeHolder<?>> getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) RecipeHolder
<?> int[]
getSlotsForFace
(Direction p_58363_) private static int
getTotalCookTime
(ServerLevel p_380169_, AbstractFurnaceBlockEntity p_222694_) private boolean
isLit()
protected void
loadAdditional
(ValueInput p_421736_) void
preRemoveSideEffects
(BlockPos p_393693_, BlockState p_393780_) protected void
saveAdditional
(ValueOutput p_421785_) static void
serverTick
(ServerLevel p_379747_, BlockPos p_155015_, BlockState p_155016_, AbstractFurnaceBlockEntity p_155017_) void
protected void
setItems
(NonNullList<ItemStack> p_332808_) void
setRecipeUsed
(RecipeHolder<?> p_301245_) 从类继承的方法 net.minecraft.world.level.block.entity.BaseContainerBlockEntity
applyImplicitComponents, canOpen, canUnlock, clearContent, collectImplicitComponents, createMenu, createMenu, getCustomName, getDefaultName, getDisplayName, getItem, getName, isEmpty, removeComponentsFromTag, removeItem, removeItemNoUpdate, stillValid
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, problemPath, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Clearable
clearContent
从接口继承的方法 net.minecraft.world.Container
canTakeItem, countItem, getItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, iterator, removeItem, removeItemNoUpdate, setChanged, startOpen, stillValid, stopOpen
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
从接口继承的方法 net.neoforged.neoforge.common.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
从接口继承的方法 java.lang.Iterable
forEach, spliterator
从接口继承的方法 net.minecraft.world.Nameable
hasCustomName
从接口继承的方法 net.minecraft.world.inventory.RecipeCraftingHolder
setRecipeUsed
-
字段详细资料
-
SLOT_INPUT
protected static final int SLOT_INPUT- 另请参阅:
-
SLOT_FUEL
protected static final int SLOT_FUEL- 另请参阅:
-
SLOT_RESULT
protected static final int SLOT_RESULT- 另请参阅:
-
DATA_LIT_TIME
public static final int DATA_LIT_TIME- 另请参阅:
-
SLOTS_FOR_UP
private static final int[] SLOTS_FOR_UP -
SLOTS_FOR_DOWN
private static final int[] SLOTS_FOR_DOWN -
SLOTS_FOR_SIDES
private static final int[] SLOTS_FOR_SIDES -
DATA_LIT_DURATION
public static final int DATA_LIT_DURATION- 另请参阅:
-
DATA_COOKING_PROGRESS
public static final int DATA_COOKING_PROGRESS- 另请参阅:
-
DATA_COOKING_TOTAL_TIME
public static final int DATA_COOKING_TOTAL_TIME- 另请参阅:
-
NUM_DATA_VALUES
public static final int NUM_DATA_VALUES- 另请参阅:
-
BURN_TIME_STANDARD
public static final int BURN_TIME_STANDARD- 另请参阅:
-
BURN_COOL_SPEED
public static final int BURN_COOL_SPEED- 另请参阅:
-
RECIPES_USED_CODEC
private static final com.mojang.serialization.Codec<Map<ResourceKey<Recipe<?>>,Integer>> RECIPES_USED_CODEC -
DEFAULT_COOKING_TIMER
private static final short DEFAULT_COOKING_TIMER- 另请参阅:
-
DEFAULT_COOKING_TOTAL_TIME
private static final short DEFAULT_COOKING_TOTAL_TIME- 另请参阅:
-
DEFAULT_LIT_TIME_REMAINING
private static final short DEFAULT_LIT_TIME_REMAINING- 另请参阅:
-
DEFAULT_LIT_TOTAL_TIME
private static final short DEFAULT_LIT_TOTAL_TIME- 另请参阅:
-
items
-
litTimeRemaining
int litTimeRemaining -
litTotalTime
int litTotalTime -
cookingTimer
int cookingTimer -
cookingTotalTime
int cookingTotalTime -
dataAccess
-
recipesUsed
private final it.unimi.dsi.fastutil.objects.Reference2IntOpenHashMap<ResourceKey<Recipe<?>>> recipesUsed -
quickCheck
private final RecipeManager.CachedCheck<SingleRecipeInput,? extends AbstractCookingRecipe> quickCheck -
recipeType
-
-
构造器详细资料
-
AbstractFurnaceBlockEntity
protected AbstractFurnaceBlockEntity(BlockEntityType<?> p_154991_, BlockPos p_154992_, BlockState p_154993_, RecipeType<? extends AbstractCookingRecipe> p_154994_)
-
-
方法详细资料
-
isLit
private boolean isLit() -
loadAdditional
-
saveAdditional
-
serverTick
public static void serverTick(ServerLevel p_379747_, BlockPos p_155015_, BlockState p_155016_, AbstractFurnaceBlockEntity p_155017_) -
canBurn
private static boolean canBurn(RegistryAccess p_266924_, @Nullable RecipeHolder<? extends AbstractCookingRecipe> p_301107_, SingleRecipeInput p_380038_, NonNullList<ItemStack> p_155007_, int p_155008_) -
burn
private static boolean burn(RegistryAccess p_266740_, @Nullable RecipeHolder<? extends AbstractCookingRecipe> p_300910_, SingleRecipeInput p_380269_, NonNullList<ItemStack> p_267073_, int p_267157_) -
getBurnDuration
-
getTotalCookTime
-
getSlotsForFace
- 指定者:
getSlotsForFace
在接口中WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_58336_, ItemStack p_58337_, @Nullable Direction p_58338_) - 指定者:
canPlaceItemThroughFace
在接口中WorldlyContainer
-
canTakeItemThroughFace
- 指定者:
canTakeItemThroughFace
在接口中WorldlyContainer
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
getItems
- 指定者:
getItems
在类中BaseContainerBlockEntity
-
setItems
- 指定者:
setItems
在类中BaseContainerBlockEntity
-
setItem
- 指定者:
setItem
在接口中Container
- 覆盖:
setItem
在类中BaseContainerBlockEntity
-
canPlaceItem
- 指定者:
canPlaceItem
在接口中Container
-
setRecipeUsed
- 指定者:
setRecipeUsed
在接口中RecipeCraftingHolder
-
getRecipeUsed
- 指定者:
getRecipeUsed
在接口中RecipeCraftingHolder
-
awardUsedRecipes
- 指定者:
awardUsedRecipes
在接口中RecipeCraftingHolder
-
awardUsedRecipesAndPopExperience
-
getRecipesToAwardAndPopExperience
public List<RecipeHolder<?>> getRecipesToAwardAndPopExperience(ServerLevel p_154996_, Vec3 p_154997_) -
createExperience
private static void createExperience(ServerLevel p_154999_, Vec3 p_155000_, int p_155001_, float p_155002_) -
fillStackedContents
- 指定者:
fillStackedContents
在接口中StackedContentsCompatible
-
preRemoveSideEffects
- 覆盖:
preRemoveSideEffects
在类中BlockEntity
-