Class Immobilizer

java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.building.Immobilizer
All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarPiston, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class Immobilizer extends io.github.pylonmc.rebar.block.RebarBlock implements io.github.pylonmc.rebar.block.base.RebarPiston, io.github.pylonmc.rebar.block.base.RebarBreakHandler
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     

    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.RebarPiston

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

    Fields
    Modifier and Type
    Field
    Description
    static HashMap<io.github.pylonmc.rebar.util.position.BlockPosition, Set<org.bukkit.entity.Player>>
     

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

    Companion

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    onBreak(@NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context)
     
    void
    onExtend(@NotNull org.bukkit.event.block.BlockPistonExtendEvent event, @NotNull org.bukkit.event.EventPriority priority)
     

    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, postInitialise, 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.RebarPiston

    onRetract
  • Field Details

    • frozenPlayers

      public static HashMap<io.github.pylonmc.rebar.util.position.BlockPosition, Set<org.bukkit.entity.Player>> frozenPlayers
  • Constructor Details

    • Immobilizer

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

      public Immobilizer(org.bukkit.block.Block block, org.bukkit.persistence.PersistentDataContainer pdc)
  • Method Details

    • onExtend

      public void onExtend(@NotNull @NotNull org.bukkit.event.block.BlockPistonExtendEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onExtend in interface io.github.pylonmc.rebar.block.base.RebarPiston
    • 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