Class ExpandAbstractVillager
java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.villager.ExpandAbstractVillager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetUnhappyCounter(net.minecraft.world.entity.npc.AbstractVillager internal) Gets how unhappy the villager is.static booleanisTrading(net.minecraft.world.entity.npc.AbstractVillager internal) Checks if the villager is trading.static voidplayCelebrateSound(net.minecraft.world.entity.npc.AbstractVillager internal) Plays the celebrate sound for the villager.static voidsetUnhappyCounter(net.minecraft.world.entity.npc.AbstractVillager internal, int unhappyCounter) Sets how unhappy the villager is.
-
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.
-