Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if(event.filterEntities(entity -> {
if (entity.get(Keys.HORSE_VARIANT).isPresent())
return entity.get(Keys.HORSE_VARIANT).filter(HorseVariants.SKELETON_HORSE::equals).isPresent();
else
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment