GossipType 5.46.0
Kinds of gossip a villager keeps about a player (https://minecraft.wiki/w/Villager#Gossiping): weight in the reputation, maximum value, decay every 20 minutes and value lost when shared with another villager. Values added: curing +20 major and +25 minor positive, each trade +2 trading, a hit +25 minor negative, killing a villager nearby +25 major negative (see the GOSSIP_* constants of VillagerV2).
Cases
MAJOR_NEGATIVE
php
case MAJOR_NEGATIVE = "major_negative"Killing a villager nearby.
MAJOR_POSITIVE
php
case MAJOR_POSITIVE = "major_positive"Curing the villager (permanent, never shared).
MINOR_NEGATIVE
php
case MINOR_NEGATIVE = "minor_negative"Hitting the villager.
MINOR_POSITIVE
php
case MINOR_POSITIVE = "minor_positive"Curing the villager (decays).
TRADING
php
case TRADING = "trading"Trading with the villager.
Methods
getDecay()
php
public function getDecay() : intValue lost every 20 minutes.
getMax()
php
public function getMax() : intgetShareCost()
php
public function getShareCost() : intValue lost when the gossip is passed to another villager.
getWeight()
php
public function getWeight() : int