Interface Shulker

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, Colorable, CommandSender, Creature, Damageable, Enemy, Entity, Frictional, Golem, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator, net.kyori.adventure.sound.Sound.Emitter

public interface Shulker extends Golem, Colorable, Enemy
  • Method Details Link icon

    • getPeek Link icon

      float getPeek()
      Gets the peek state of the shulker between 0.0 and 1.0.
      Returns:
      the peek state of the shulker between 0.0 and 1.0
    • setPeek Link icon

      void setPeek(float value)
      Sets the peek state of the shulker, should be in between 0.0 and 1.0.
      Parameters:
      value - peek state of the shulker, should be in between 0.0 and 1.0
      Throws:
      IllegalArgumentException - thrown if the value exceeds the valid range in between of 0.0 and 1.0
    • getAttachedFace Link icon

      @NotNull @NotNull BlockFace getAttachedFace()
      Gets the face to which the shulker is attached.
      Returns:
      the face to which the shulker is attached
    • setAttachedFace Link icon

      void setAttachedFace(@NotNull @NotNull BlockFace face)
      Sets the face to which the shulker is attached.
      Parameters:
      face - the face to attach the shulker to