CapturedNPCMetadata.java
package com.hypixel.hytale.server.npc.metadata;
import com.hypixel.hytale.codec.Codec;
import com.hypixel.hytale.codec.KeyedCodec;
import com.hypixel.hytale.codec.builder.BuilderCodec;
public class CapturedNPCMetadata {
public static final String KEY = "CapturedEntity";
public static final BuilderCodec<CapturedNPCMetadata> CODEC;
public static final KeyedCodec<CapturedNPCMetadata> KEYED_CODEC;
private String iconPath;
private int roleIndex;
private String npcNameKey;
private String fullItemIcon;
public CapturedNPCMetadata() {
}
public int getRoleIndex() {
return this.roleIndex;
}
public String getIconPath() {
return this.iconPath;
}
public String {
.npcNameKey;
}
String {
.fullItemIcon;
}
{
.iconPath = iconPath;
}
{
.roleIndex = roleIndex;
}
{
.npcNameKey = npcNameKey;
}
{
.fullItemIcon = fullItemIcon;
}
{
CODEC = ((BuilderCodec.Builder)((BuilderCodec.Builder)((BuilderCodec.Builder)((BuilderCodec.Builder)BuilderCodec.builder(CapturedNPCMetadata.class, CapturedNPCMetadata::).appendInherited( (, Codec.STRING), (meta, s) -> meta.iconPath = s, (meta) -> meta.iconPath, (meta, parent) -> meta.iconPath = parent.iconPath).add()).appendInherited( (, Codec.INTEGER), (meta, s) -> meta.roleIndex = s, (meta) -> meta.roleIndex, (meta, parent) -> meta.roleIndex = parent.roleIndex).add()).appendInherited( (, Codec.STRING), (meta, s) -> meta.npcNameKey = s, (meta) -> meta.npcNameKey, (meta, parent) -> meta.npcNameKey = parent.npcNameKey).add()).appendInherited( (, Codec.STRING), (meta, s) -> meta.fullItemIcon = s, (meta) -> meta.fullItemIcon, (meta, parent) -> meta.fullItemIcon = parent.fullItemIcon).add()).build();
KEYED_CODEC = <CapturedNPCMetadata>(, CODEC);
}
}