Class ExpandAbstractVillager

java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.villager.ExpandAbstractVillager

@ZenRegister public class ExpandAbstractVillager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getUnhappyCounter(net.minecraft.world.entity.npc.AbstractVillager internal)
    Gets how unhappy the villager is.
    static boolean
    isTrading(net.minecraft.world.entity.npc.AbstractVillager internal)
    Checks if the villager is trading.
    static void
    playCelebrateSound(net.minecraft.world.entity.npc.AbstractVillager internal)
    Plays the celebrate sound for the villager.
    static void
    setUnhappyCounter(net.minecraft.world.entity.npc.AbstractVillager internal, int unhappyCounter)
    Sets how unhappy the villager is.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandAbstractVillager

      public ExpandAbstractVillager()
  • Method Details

    • getUnhappyCounter

      public static int getUnhappyCounter(net.minecraft.world.entity.npc.AbstractVillager internal)
      Gets how unhappy the villager is.
      Returns:
      how unhappy the villager is
    • setUnhappyCounter

      public static void setUnhappyCounter(net.minecraft.world.entity.npc.AbstractVillager internal, int unhappyCounter)
      Sets how unhappy the villager is.
      Parameters:
      unhappyCounter - The new unhappy counter.
    • isTrading

      public static boolean isTrading(net.minecraft.world.entity.npc.AbstractVillager internal)
      Checks if the villager is trading.
      Returns:
      if the villager is trading
    • playCelebrateSound

      public static void playCelebrateSound(net.minecraft.world.entity.npc.AbstractVillager internal)
      Plays the celebrate sound for the villager.