public class Relationship
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SCORE |
| Constructor and Description |
|---|
Relationship(java.util.UUID entity,
short score) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DinosaurEntity |
get(DinosaurEntity owner) |
short |
getScore() |
java.util.UUID |
getUUID() |
int |
hashCode() |
void |
onAttacked(double damage) |
static Relationship |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
void |
setFamily() |
boolean |
update(DinosaurEntity owner) |
void |
updateHerd(DinosaurEntity owner) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
public static final int MAX_SCORE
public boolean update(DinosaurEntity owner)
public DinosaurEntity get(DinosaurEntity owner)
public void updateHerd(DinosaurEntity owner)
public void onAttacked(double damage)
public void setFamily()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
public static Relationship readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
public java.util.UUID getUUID()
public short getScore()