Add trident to EntityType1_13

This commit is contained in:
KennyTV 2019-05-22 16:23:56 +02:00
parent 88cfa40776
commit 885ae3f63b

View File

@ -286,7 +286,8 @@ public class EntityType1_13 {
EVOCATION_FANGS(79, EntityType.EVOCATION_FANGS),
FISHIHNG_HOOK(90, EntityType.FISHING_BOBBER),
SPECTRAL_ARROW(91, EntityType.SPECTRAL_ARROW),
DRAGON_FIREBALL(93, EntityType.DRAGON_FIREBALL);
DRAGON_FIREBALL(93, EntityType.DRAGON_FIREBALL),
TRIDENT(94, EntityType.TRIDENT);
private final int id;
private final EntityType type;
@ -308,7 +309,7 @@ public class EntityType1_13 {
return output.map(ObjectType::getType);
}
public static Optional<ObjectType> fromEntityType(EntityType type){
public static Optional<ObjectType> fromEntityType(EntityType type) {
for (ObjectType ent : ObjectType.values())
if (ent.getType() == type)
return Optional.of(ent);