Interface AbstractCubeMob

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Creature, Damageable, DataComponentView, Entity, Frictional, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator, net.kyori.adventure.sound.Sound.Emitter, net.kyori.adventure.sound.Sound.Source.Provider
All Known Subinterfaces:
MagmaCube, Slime, SulfurCube

public interface AbstractCubeMob extends Creature
Represents an abstract cube mob.
Since:
26.2
  • Method Details

    • getSize

      int getSize()
      Returns:
      the size of the cube mob
      Since:
      26.2
    • setSize

      void setSize(int size)
      Setting the size of the cube mob (regardless of previous size) will set the following attributes: to their per-size defaults and heal the cube mob to its max health (assuming it's alive).
      Parameters:
      size - the new size of the cube mob.
      Since:
      26.2
    • canWander

      boolean canWander()
      Get whether this cube mob can randomly wander/jump around on its own
      Returns:
      true if can wander
      Since:
      26.2
    • setWander

      void setWander(boolean canWander)
      Set whether this cube mob can randomly wander/jump around on its own
      Parameters:
      canWander - true if can wander
      Since:
      26.2