Class CorporeaRetainerBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.corporea.CorporeaRetainerBlockEntity
- All Implemented Interfaces:
Wandable
-
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
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionCorporeaRetainerBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CorporeaRequestMatcher>
voidaddCorporeaRequestMatcher(net.minecraft.resources.ResourceLocation id, Class<T> clazz, Function<net.minecraft.nbt.CompoundTag, T> deserializer) voidforget()voidintbooleanbooleanonUsedByWand(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side) Called when the block is used by a wand.voidreadPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) voidremember(net.minecraft.core.BlockPos pos, CorporeaRequestMatcher request, int count, int missing) voidwritePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Methods 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, triggerEvent
-
Constructor Details
-
CorporeaRetainerBlockEntity
public CorporeaRetainerBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
remember
public void remember(net.minecraft.core.BlockPos pos, CorporeaRequestMatcher request, int count, int missing) -
forget
public void forget() -
getComparatorValue
public int getComparatorValue() -
hasPendingRequest
public boolean hasPendingRequest() -
fulfilRequest
public void fulfilRequest() -
writePacketNBT
public void writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
writePacketNBTin classBotaniaBlockEntity
-
readPacketNBT
public void readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
readPacketNBTin classBotaniaBlockEntity
-
addCorporeaRequestMatcher
public static <T extends CorporeaRequestMatcher> void addCorporeaRequestMatcher(net.minecraft.resources.ResourceLocation id, Class<T> clazz, Function<net.minecraft.nbt.CompoundTag, T> deserializer) -
onUsedByWand
public boolean onUsedByWand(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side) Description copied from interface:WandableCalled when the block is used by a wand.- Specified by:
onUsedByWandin interfaceWandable- Parameters:
player- Null if the block is being wanded by a dispenser
-