Class BronzeAnvil

java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.smelting.BronzeAnvil
All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock, io.github.pylonmc.rebar.block.base.RebarFallingBlock, io.github.pylonmc.rebar.block.base.RebarInteractBlock, io.github.pylonmc.rebar.block.base.RebarLogisticBlock, io.github.pylonmc.rebar.block.base.RebarTickingBlock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public final class BronzeAnvil extends io.github.pylonmc.rebar.block.RebarBlock implements io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock, io.github.pylonmc.rebar.block.base.RebarTickingBlock, io.github.pylonmc.rebar.block.base.RebarLogisticBlock, io.github.pylonmc.rebar.block.base.RebarInteractBlock, io.github.pylonmc.rebar.block.base.RebarFallingBlock
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.block.RebarBlock

    io.github.pylonmc.rebar.block.RebarBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock

    io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarFallingBlock

    io.github.pylonmc.rebar.block.base.RebarFallingBlock.Companion, io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock

    io.github.pylonmc.rebar.block.base.RebarInteractBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock

    io.github.pylonmc.rebar.block.base.RebarLogisticBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock

    io.github.pylonmc.rebar.block.base.RebarTickingBlock.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
    static final org.bukkit.NamespacedKey
     
    static final net.kyori.adventure.sound.Sound
     
    static final org.bukkit.NamespacedKey
     
    static final int
     
    static final int
     
    static final net.kyori.adventure.sound.Sound
     

    Fields inherited from class io.github.pylonmc.rebar.block.RebarBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarFallingBlock

    Companion, FALLBACK_ITEM, FALLING_BLOCK_DATA, FALLING_BLOCK_START, FALLING_BLOCK_TYPE, KEY

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    BronzeAnvil(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context)
     
    BronzeAnvil(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.ItemDisplay
     
    void
    onBreak(@NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context)
     
    void
    onFallStart(@NotNull org.bukkit.event.entity.EntityChangeBlockEvent event, io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity spawnedEntity)
     
    void
    onFallStop(@NotNull org.bukkit.event.entity.EntityChangeBlockEvent event, io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity entity)
     
    void
    onInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
     
    void
     

    Methods inherited from class io.github.pylonmc.rebar.block.RebarBlock

    getBlock, getBlockTextureEntity, getBlockTextureItem, getBlockTextureProperties, getDefaultItem, getDefaultWailaTranslationKey, getDisableBlockTextureEntity, getDropItem, getKey, getLoreTranslationKey, getNameTranslationKey, getPickItem, getRebarBlock, getRebarBlockKeyKey, getRebarBlockPositionKey, getRebarBlockTextureEntityKey, getSchema, getSettings, getWaila, isVanillaBlock, postLoad, refreshBlockTextureItem, register, scheduleBlockTextureItemRefresh, setDisableBlockTextureEntity, setupBlockTexture, write, writeDebugInfo

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarBreakHandler

    postBreak, preBreak

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock

    addEntity, addEntity, areAllHeldEntitiesLoaded, getBlock, getHeldEntities, getHeldEntity, getHeldEntity, getHeldEntityOrThrow, getHeldEntityOrThrow, getHeldEntityUuid, getHeldEntityUuidOrThrow, getHeldRebarEntity, getHeldRebarEntity, getHeldRebarEntityOrThrow, isHeldEntityPresent, tryRemoveAllEntities, tryRemoveEntity, whenHeldRebarEntityLoads, whenHeldRebarEntityLoads

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarFallingBlock

    onItemDrop

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock

    createLogisticGroup, createLogisticGroup, createLogisticGroup, createLogisticGroup, getBlock, getLogisticGroup, getLogisticGroupOrThrow, getLogisticGroups

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock

    getTickInterval, isAsync, setAsync, setTickInterval
  • Field Details

    • TICK_INTERVAL

      public static final int TICK_INTERVAL
    • COOL_CHANCE

      public static final float COOL_CHANCE
    • TOLERANCE

      public static final int TOLERANCE
    • HAMMER_SOUND

      public static final net.kyori.adventure.sound.Sound HAMMER_SOUND
    • TONGS_SOUND

      public static final net.kyori.adventure.sound.Sound TONGS_SOUND
    • DIRECTION_FALLING

      public static final org.bukkit.NamespacedKey DIRECTION_FALLING
    • STORED_ITEM

      public static final org.bukkit.NamespacedKey STORED_ITEM
  • Constructor Details

    • BronzeAnvil

      public BronzeAnvil(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context)
    • BronzeAnvil

      public BronzeAnvil(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
  • Method Details

    • postInitialise

      public void postInitialise()
      Overrides:
      postInitialise in class io.github.pylonmc.rebar.block.RebarBlock
    • onBreak

      public void onBreak(@NotNull @NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context)
      Specified by:
      onBreak in interface io.github.pylonmc.rebar.block.base.RebarBreakHandler
    • onInteract

      public void onInteract(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onInteract in interface io.github.pylonmc.rebar.block.base.RebarInteractBlock
    • tick

      public void tick()
      Specified by:
      tick in interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
    • onFallStart

      public void onFallStart(@NotNull @NotNull org.bukkit.event.entity.EntityChangeBlockEvent event, @NotNull io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity spawnedEntity)
      Specified by:
      onFallStart in interface io.github.pylonmc.rebar.block.base.RebarFallingBlock
    • onFallStop

      public void onFallStop(@NotNull @NotNull org.bukkit.event.entity.EntityChangeBlockEvent event, @NotNull io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity entity)
      Specified by:
      onFallStop in interface io.github.pylonmc.rebar.block.base.RebarFallingBlock
    • getItemDisplay

      public org.bukkit.entity.ItemDisplay getItemDisplay()