Class BreweryBlockEntity
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.BreweryBlockEntity
- All Implemented Interfaces:
net.minecraft.world.Clearable,ManaReceiver
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
FieldsFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface vazkii.botania.api.mana.ManaReceiver
ID -
Constructor Summary
ConstructorsConstructorDescriptionBreweryBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddItem(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.InteractionHand hand) booleanCan this tile receive mana from bursts? Generally set to false for implementations of ManaCollector.static voidcommonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, BreweryBlockEntity self) protected net.minecraft.world.SimpleContainerintGets the amount of mana currently in this block.intnet.minecraft.world.level.Levelnet.minecraft.core.BlockPosbooleanisFull()Is this Mana Receiver is full? Being full means no mana bursts will be sent.voidreadPacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) voidreceiveMana(int mana) Called when this receiver receives mana.booleantriggerEvent(int event, int param) voidwritePacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity
clearContent, getItemHandler, inventorySizeMethods 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, setRemoved
-
Field Details
-
recipe
-
signal
public int signal
-
-
Constructor Details
-
BreweryBlockEntity
public BreweryBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
addItem
public boolean addItem(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.world.InteractionHand hand) -
commonTick
public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, BreweryBlockEntity self) -
triggerEvent
public boolean triggerEvent(int event, int param) - Overrides:
triggerEventin classnet.minecraft.world.level.block.entity.BlockEntity
-
getManaCost
public int getManaCost() -
writePacketNBT
public void writePacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
writePacketNBTin classSimpleInventoryBlockEntity
-
readPacketNBT
public void readPacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
readPacketNBTin classSimpleInventoryBlockEntity
-
createItemHandler
protected net.minecraft.world.SimpleContainer createItemHandler()- Specified by:
createItemHandlerin classSimpleInventoryBlockEntity
-
getManaReceiverLevel
public net.minecraft.world.level.Level getManaReceiverLevel()- Specified by:
getManaReceiverLevelin interfaceManaReceiver
-
getManaReceiverPos
public net.minecraft.core.BlockPos getManaReceiverPos()- Specified by:
getManaReceiverPosin interfaceManaReceiver
-
getCurrentMana
public int getCurrentMana()Description copied from interface:ManaReceiverGets the amount of mana currently in this block.- Specified by:
getCurrentManain interfaceManaReceiver
-
isFull
public boolean isFull()Description copied from interface:ManaReceiverIs this Mana Receiver is full? Being full means no mana bursts will be sent.- Specified by:
isFullin interfaceManaReceiver
-
receiveMana
public void receiveMana(int mana) Description copied from interface:ManaReceiverCalled when this receiver receives mana.- Specified by:
receiveManain interfaceManaReceiver
-
canReceiveManaFromBursts
public boolean canReceiveManaFromBursts()Description copied from interface:ManaReceiverCan this tile receive mana from bursts? Generally set to false for implementations of ManaCollector.- Specified by:
canReceiveManaFromBurstsin interfaceManaReceiver
-