Class BrewingStandBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.BrewingStandBlockEntity
- All Implemented Interfaces:
- Clearable,- Container,- MenuConstructor,- MenuProvider,- Nameable,- WorldlyContainer,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- IForgeBlockEntity
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntityBlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) intstatic final intstatic final intprotected final ContainerData(package private) intprivate static final intstatic final int(package private) LazyOptional<? extends IItemHandler>[]private Itemprivate static final intprivate NonNullList<ItemStack> private boolean[]static final intprivate static final int[]private static final int[]private static final int[]Fields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_BUFFERFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanPlaceItem(int p_59017_, ItemStack p_59018_) booleancanPlaceItemThroughFace(int p_58996_, ItemStack p_58997_, Direction p_58998_) booleancanTakeItemThroughFace(int p_59020_, ItemStack p_59021_, Direction p_59022_) protected AbstractContainerMenucreateMenu(int p_58990_, Inventory p_58991_) private static voiddoBrew(Level p_155291_, BlockPos p_155292_, NonNullList<ItemStack> p_155293_) <T> LazyOptional<T> getCapability(Capability<T> capability, Direction facing) Retrieves the Optional handler for the capability requested on the specific side.intprotected Componentprotected NonNullList<ItemStack> getItems()private boolean[]int[]getSlotsForFace(Direction p_59010_) voidprivate static booleanisBrewable(PotionBrewing p_336227_, NonNullList<ItemStack> p_155295_) protected voidloadAdditional(CompoundTag p_335279_, HolderLookup.Provider p_330361_) voidprotected voidsaveAdditional(CompoundTag p_187484_, HolderLookup.Provider p_336147_) static voidserverTick(Level p_155286_, BlockPos p_155287_, BlockState p_155288_, BrewingStandBlockEntity p_155289_) protected voidsetItems(NonNullList<ItemStack> p_332629_) Methods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntityapplyImplicitComponents, canOpen, canUnlock, clearContent, collectImplicitComponents, createMenu, createUnSidedHandler, getCustomName, getDisplayName, getItem, getName, isEmpty, removeComponentsFromTag, removeItem, removeItemNoUpdate, setItem, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderdeserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ClearableclearContentMethods inherited from interface net.minecraft.world.ContainercanTakeItem, countItem, getItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpenMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitygetModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface net.minecraft.world.NameablehasCustomName
- 
Field Details- 
INGREDIENT_SLOTprivate static final int INGREDIENT_SLOT- See Also:
 
- 
FUEL_SLOTprivate static final int FUEL_SLOT- See Also:
 
- 
SLOTS_FOR_UPprivate static final int[] SLOTS_FOR_UP
- 
SLOTS_FOR_DOWNprivate static final int[] SLOTS_FOR_DOWN
- 
SLOTS_FOR_SIDESprivate static final int[] SLOTS_FOR_SIDES
- 
FUEL_USESpublic static final int FUEL_USES- See Also:
 
- 
DATA_BREW_TIMEpublic static final int DATA_BREW_TIME- See Also:
 
- 
DATA_FUEL_USESpublic static final int DATA_FUEL_USES- See Also:
 
- 
NUM_DATA_VALUESpublic static final int NUM_DATA_VALUES- See Also:
 
- 
items
- 
brewTimeint brewTime
- 
lastPotionCountprivate boolean[] lastPotionCount
- 
ingredient
- 
fuelint fuel
- 
dataAccess
- 
handlersLazyOptional<? extends IItemHandler>[] handlers
 
- 
- 
Constructor Details- 
BrewingStandBlockEntity
 
- 
- 
Method Details- 
getDefaultName- Specified by:
- getDefaultNamein class- BaseContainerBlockEntity
 
- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- Container
 
- 
getItems- Specified by:
- getItemsin class- BaseContainerBlockEntity
 
- 
setItems- Specified by:
- setItemsin class- BaseContainerBlockEntity
 
- 
serverTickpublic static void serverTick(Level p_155286_, BlockPos p_155287_, BlockState p_155288_, BrewingStandBlockEntity p_155289_) 
- 
getPotionBitsprivate boolean[] getPotionBits()
- 
isBrewable
- 
doBrew
- 
loadAdditional- Overrides:
- loadAdditionalin class- BaseContainerBlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BaseContainerBlockEntity
 
- 
canPlaceItem- Specified by:
- canPlaceItemin interface- Container
 
- 
getSlotsForFace- Specified by:
- getSlotsForFacein interface- WorldlyContainer
 
- 
canPlaceItemThroughFacepublic boolean canPlaceItemThroughFace(int p_58996_, ItemStack p_58997_, @Nullable Direction p_58998_) - Specified by:
- canPlaceItemThroughFacein interface- WorldlyContainer
 
- 
canTakeItemThroughFace- Specified by:
- canTakeItemThroughFacein interface- WorldlyContainer
 
- 
createMenu- Specified by:
- createMenuin class- BaseContainerBlockEntity
 
- 
getCapabilityDescription copied from interface:ICapabilityProviderRetrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- Specified by:
- getCapabilityin interface- ICapabilityProvider
- Overrides:
- getCapabilityin class- BaseContainerBlockEntity
- Parameters:
- capability- The capability to check
- facing- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'
- Returns:
- The requested an optional holding the requested capability.
 
- 
invalidateCapspublic void invalidateCaps()- Specified by:
- invalidateCapsin interface- ICapabilityProviderImpl<BlockEntity>
- Overrides:
- invalidateCapsin class- BaseContainerBlockEntity
 
- 
reviveCapspublic void reviveCaps()- Specified by:
- reviveCapsin interface- ICapabilityProviderImpl<BlockEntity>
- Overrides:
- reviveCapsin class- BaseContainerBlockEntity
 
 
-