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.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock
io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock.CompanionNested 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.RebarFallingBlockEntityNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock
io.github.pylonmc.rebar.block.base.RebarInteractBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
io.github.pylonmc.rebar.block.base.RebarLogisticBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
io.github.pylonmc.rebar.block.base.RebarTickingBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final org.bukkit.NamespacedKeystatic final net.kyori.adventure.sound.Soundstatic final org.bukkit.NamespacedKeystatic final intstatic final intstatic final net.kyori.adventure.sound.SoundFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarFallingBlock
Companion, FALLBACK_ITEM, FALLING_BLOCK_DATA, FALLING_BLOCK_START, FALLING_BLOCK_TYPE, KEYFields inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionBronzeAnvil(@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 TypeMethodDescriptionorg.bukkit.entity.ItemDisplayvoidonBreak(@NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) voidonFallStart(@NotNull org.bukkit.event.entity.EntityChangeBlockEvent event, io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity spawnedEntity) voidonFallStop(@NotNull org.bukkit.event.entity.EntityChangeBlockEvent event, io.github.pylonmc.rebar.block.base.RebarFallingBlock.RebarFallingBlockEntity entity) voidonInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority) voidvoidtick()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, writeDebugInfoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarBreakHandler
postBreak, preBreakMethods 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, whenHeldRebarEntityLoadsMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarFallingBlock
onItemDropMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
createLogisticGroup, createLogisticGroup, createLogisticGroup, createLogisticGroup, getBlock, getLogisticGroup, getLogisticGroupOrThrow, getLogisticGroupsMethods 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:
postInitialisein classio.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:
onBreakin interfaceio.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:
onInteractin interfaceio.github.pylonmc.rebar.block.base.RebarInteractBlock
-
tick
public void tick()- Specified by:
tickin interfaceio.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:
onFallStartin interfaceio.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:
onFallStopin interfaceio.github.pylonmc.rebar.block.base.RebarFallingBlock
-
getItemDisplay
public org.bukkit.entity.ItemDisplay getItemDisplay()
-