3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 08:30:10 +01:00

Add trident to EntityType1_13

Dieser Commit ist enthalten in:
KennyTV 2019-05-22 16:23:56 +02:00
Ursprung 88cfa40776
Commit 885ae3f63b

Datei anzeigen

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