Interface Pig

All Superinterfaces:
Ageable, Animal, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider

public interface Pig extends Animal
A pig (minecraft:pig): it looks and sounds after the biome it spawned in.

Like every entity, change it from the region thread owning its chunk.

Since:
0.1.0
  • Method Details

    • variant

      TypedKey<PigVariant> variant()
      Returns how this pig looks.
      Returns:
      how this pig looks
      Since:
      0.1.0
    • setVariant

      void setVariant(TypedKey<PigVariant> variant)
      Changes how this pig looks.
      Parameters:
      variant - the new look
      Since:
      0.1.0
    • soundVariant

      TypedKey<PigSoundVariant> soundVariant()
      Returns how this pig sounds.
      Returns:
      how this pig sounds
      Since:
      0.1.0
    • setSoundVariant

      void setSoundVariant(TypedKey<PigSoundVariant> soundVariant)
      Changes how this pig sounds.
      Parameters:
      soundVariant - the new sounds
      Since:
      0.1.0