use of net.glowstone.entity.meta.MetadataMap in project Glowstone by GlowstoneMC.
the class GlowHorse method createSpawnMessage.
@Override
public List<Message> createSpawnMessage() {
List<Message> messages = super.createSpawnMessage();
MetadataMap map = new MetadataMap(GlowHorse.class);
map.set(MetadataIndex.HORSE_STYLE, getHorseStyleData());
map.set(MetadataIndex.HORSE_ARMOR, getHorseArmorData());
messages.add(new EntityMetadataMessage(id, map.getEntryList()));
return messages;
}
use of net.glowstone.entity.meta.MetadataMap in project Glowstone by GlowstoneMC.
the class GlowAbstractHorse method createSpawnMessage.
@Override
public List<Message> createSpawnMessage() {
List<Message> messages = super.createSpawnMessage();
MetadataMap map = new MetadataMap(GlowHorse.class);
map.set(MetadataIndex.ABSTRACT_HORSE_FLAGS, getHorseFlags());
messages.add(new EntityMetadataMessage(id, map.getEntryList()));
return messages;
}
use of net.glowstone.entity.meta.MetadataMap in project Glowstone by GlowstoneMC.
the class GlowAgeable method createSpawnMessage.
@Override
public List<Message> createSpawnMessage() {
List<Message> messages = super.createSpawnMessage();
MetadataMap map = new MetadataMap(GlowAgeable.class);
map.set(MetadataIndex.AGE_ISBABY, !isAdult());
messages.add(new EntityMetadataMessage(id, map.getEntryList()));
return messages;
}
Aggregations