Interface AbstractCubeMob

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, DataComponentView, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter
All Known Subinterfaces:
MagmaCube, Slime, SulfurCube

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

    • getSize

      int getSize()
      Returns:
      the size of the slime
    • setSize

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

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

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