Class PetalApothecaryBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity
vazkii.botania.common.block.block_entity.PetalApothecaryBlockEntity
- All Implemented Interfaces:
net.minecraft.world.Clearable,PetalApothecary
public class PetalApothecaryBlockEntity
extends SimpleInventoryBlockEntity
implements PetalApothecary
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInputNested classes/interfaces inherited from interface vazkii.botania.api.block.PetalApothecary
PetalApothecary.State -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionPetalApothecaryBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidstatic voidclientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, PetalApothecaryBlockEntity self) booleancollideEntityItem(net.minecraft.world.entity.item.ItemEntity item) protected net.minecraft.world.SimpleContainergetFluid()Get the contained fluid.booleanisEmpty()voidsaveLastRecipe(net.minecraft.world.item.crafting.Ingredient reagent) static voidserverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, PetalApothecaryBlockEntity self) voidsetFluid(PetalApothecary.State fluid) Set the contained fluid.voidsetFluid(PetalApothecary.State fluid, boolean withVibration) booleantriggerEvent(int id, int param) net.minecraft.world.ItemInteractionResulttrySetLastRecipe(net.minecraft.world.entity.player.Player player) Methods inherited from class vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity
clearContent, getItemHandler, inventorySize, readPacketNBT, writePacketNBTMethods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity
getUpdatePacket, getUpdateTag, loadAdditional, saveAdditionalMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemovedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.botania.api.block.PetalApothecary
blockEntity
-
Constructor Details
-
PetalApothecaryBlockEntity
public PetalApothecaryBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
collideEntityItem
public boolean collideEntityItem(net.minecraft.world.entity.item.ItemEntity item) -
saveLastRecipe
public void saveLastRecipe(net.minecraft.world.item.crafting.Ingredient reagent) -
clearLastRecipe
public void clearLastRecipe() -
trySetLastRecipe
public net.minecraft.world.ItemInteractionResult trySetLastRecipe(net.minecraft.world.entity.player.Player player) -
isEmpty
public boolean isEmpty() -
serverTick
public static void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, PetalApothecaryBlockEntity self) -
clientTick
public static void clientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, PetalApothecaryBlockEntity self) -
triggerEvent
public boolean triggerEvent(int id, int param) - Overrides:
triggerEventin classnet.minecraft.world.level.block.entity.BlockEntity
-
createItemHandler
protected net.minecraft.world.SimpleContainer createItemHandler()- Specified by:
createItemHandlerin classSimpleInventoryBlockEntity
-
setFluid
Description copied from interface:PetalApothecarySet the contained fluid.- Specified by:
setFluidin interfacePetalApothecary
-
setFluid
-
getFluid
Description copied from interface:PetalApothecaryGet the contained fluid.- Specified by:
getFluidin interfacePetalApothecary
-
canAddLastRecipe
public boolean canAddLastRecipe()
-