Class BlockDisplayWatcher

All Implemented Interfaces:
GridLockedWatcher

public class BlockDisplayWatcher extends DisplayWatcher implements GridLockedWatcher
  • Constructor Details

    • BlockDisplayWatcher

      public BlockDisplayWatcher(Disguise disguise)
  • Method Details

    • clone

      public BlockDisplayWatcher clone(Disguise owningDisguise)
      Overrides:
      clone in class FlagWatcher
    • getBlockState

      public com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState getBlockState()
    • setBlockState

      public void setBlockState(com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState block)
    • getBlock

      public org.bukkit.block.data.BlockData getBlock()
    • setBlock

      public void setBlock(org.bukkit.block.data.BlockData block)
    • isAutoCentered

      public boolean isAutoCentered()
    • setAutoCentered

      public void setAutoCentered(boolean autoCenter)
    • setTranslation

      public void setTranslation(org.joml.Vector3f translation)
      Overrides:
      setTranslation in class DisplayWatcher
    • getTranslation

      public org.joml.Vector3f getTranslation()
      Overrides:
      getTranslation in class DisplayWatcher
    • getScale

      public org.joml.Vector3f getScale()
      Overrides:
      getScale in class DisplayWatcher
    • setScale

      public void setScale(org.joml.Vector3f scale)
      Overrides:
      setScale in class DisplayWatcher
    • setGridLocked

      public void setGridLocked(boolean gridLocked)
      Description copied from interface: GridLockedWatcher
      Make the plugin start centering this block
      Specified by:
      setGridLocked in interface GridLockedWatcher
      Parameters:
      gridLocked -
    • getWidthX

      public double getWidthX()
      Description copied from interface: GridLockedWatcher
      Get the width of the block / 2
      Specified by:
      getWidthX in interface GridLockedWatcher
    • getWidthZ

      public double getWidthZ()
      Description copied from interface: GridLockedWatcher
      Get the length of the block / 2
      Specified by:
      getWidthZ in interface GridLockedWatcher