You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the Entity#checkDespawn method would make more sense if it were named Entity#tryDespawn or similar. The method calls the Entity#discard method itself, rather than returning a boolean. For example, shulker bullets override the method like so:
@OverridepublicvoidcheckDespawn() {
if (this.getWorld().getDifficulty() == Difficulty.PEACEFUL) {
this.discard();
}
}
Note that a different TraderLlamaEntity#tryDespawn method already exists.
The text was updated successfully, but these errors were encountered:
I think the
Entity#checkDespawn
method would make more sense if it were namedEntity#tryDespawn
or similar. The method calls theEntity#discard
method itself, rather than returning a boolean. For example, shulker bullets override the method like so:Note that a different
TraderLlamaEntity#tryDespawn
method already exists.The text was updated successfully, but these errors were encountered: