Make shulker bullet the default marker type

This commit is contained in:
fullwall 2020-09-11 16:35:15 +08:00
parent 52f8044cd5
commit d334d86f3d

View File

@ -25,7 +25,7 @@ public class EntityMarkers<T> {
private EntityType type;
public EntityMarkers() {
this(EntityType.ENDER_SIGNAL);
this(DEFAULT_ENTITY_TYPE);
}
public EntityMarkers(EntityType type) {
@ -76,4 +76,13 @@ public class EntityMarkers<T> {
npc.spawn(at.clone().add(0.5, 0, 0.5), SpawnReason.CREATE);
return npc.getEntity();
}
private static EntityType DEFAULT_ENTITY_TYPE = EntityType.ENDER_SIGNAL;
static {
try {
DEFAULT_ENTITY_TYPE = EntityType.valueOf("SHULKER_BULLET");
} catch (IllegalArgumentException e) {
}
}
}