Class AlfheimPortalBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.AlfheimPortalBlockEntity
All Implemented Interfaces:
Wandable

public class AlfheimPortalBlockEntity extends BotaniaBlockEntity implements Wandable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final Supplier<vazkii.patchouli.api.IMultiblock>
     
    int
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface vazkii.botania.api.block.Wandable

    ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlfheimPortalBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState blockState, AlfheimPortalBlockEntity self)
     
    boolean
    consumeMana(List<net.minecraft.core.BlockPos> pylons, int totalCost, boolean close)
     
    static Collection<net.minecraft.world.item.crafting.RecipeHolder<ElvenTradeRecipe>>
    elvenTradeRecipes(net.minecraft.world.level.Level world)
     
    void
     
    void
    loadAdditional(@NotNull net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
     
    List<net.minecraft.core.BlockPos>
    locatePylons(boolean rescanNow)
     
    boolean
    onUsedByWand(@Nullable 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.
    void
    readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
     
    void
    writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
     

    Methods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity

    getUpdatePacket, getUpdateTag

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MULTIBLOCK

      public static final Supplier<vazkii.patchouli.api.IMultiblock> MULTIBLOCK
    • MANA_COST

      public static final int MANA_COST
      See Also:
    • MANA_COST_OPENING

      public static final int MANA_COST_OPENING
      See Also:
    • MIN_REQUIRED_PYLONS

      public static final int MIN_REQUIRED_PYLONS
      See Also:
    • ticksOpen

      public int ticksOpen
  • Constructor Details

    • AlfheimPortalBlockEntity

      public AlfheimPortalBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • commonTick

      public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState blockState, AlfheimPortalBlockEntity self)
    • onUsedByWand

      public boolean onUsedByWand(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side)
      Description copied from interface: Wandable
      Called when the block is used by a wand.
      Specified by:
      onUsedByWand in interface Wandable
      Parameters:
      player - Null if the block is being wanded by a dispenser
    • elvenTradeRecipes

      public static Collection<net.minecraft.world.item.crafting.RecipeHolder<ElvenTradeRecipe>> elvenTradeRecipes(net.minecraft.world.level.Level world)
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      saveAdditional in class BotaniaBlockEntity
    • loadAdditional

      public void loadAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      loadAdditional in class BotaniaBlockEntity
    • writePacketNBT

      public void writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      writePacketNBT in class BotaniaBlockEntity
    • readPacketNBT

      public void readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      readPacketNBT in class BotaniaBlockEntity
    • locatePylons

      public List<net.minecraft.core.BlockPos> locatePylons(boolean rescanNow)
    • lightPylons

      public void lightPylons()
    • consumeMana

      public boolean consumeMana(List<net.minecraft.core.BlockPos> pylons, int totalCost, boolean close)