public void setHasStung(boolean p_27926_) {
this.setFlag(4, p_27926_);
}
I have set setHasStung to public, however it still seems to not let me call the method. I'm trying to make it so that bees can sting you, but will not lose their stinger and die:
@SubscribeEvent
public static void unSting(LivingHurtEvent e) {
if (e.getSource().getEntity() instanceof Bee) {
((Bee)e.getSource().getEntity()).setHasStung(false);
}
}
setHasStung is just underlined red, can anyone explain this? Thank you