use of org.bukkit.craftbukkit.v1_16_R1.attribute.CraftAttributeMap in project MyPet by MyPetORG.
the class EntityMyPet method replaceCraftAttributes.
protected void replaceCraftAttributes() {
Field craftAttributesField = ReflectionUtil.getField(EntityLiving.class, "craftAttributes");
CraftAttributeMap craftAttributes = new CraftAttributeMap(this.getAttributeMap());
ReflectionUtil.setFinalFieldValue(craftAttributesField, this, craftAttributes);
}
use of org.bukkit.craftbukkit.v1_16_R1.attribute.CraftAttributeMap in project MyPet by xXKeyleXx.
the class EntityMyPet method replaceCraftAttributes.
protected void replaceCraftAttributes() {
Field craftAttributesField = ReflectionUtil.getField(EntityLiving.class, "craftAttributes");
CraftAttributeMap craftAttributes = new CraftAttributeMap(this.getAttributeMap());
ReflectionUtil.setFinalFieldValue(craftAttributesField, this, craftAttributes);
}
use of org.bukkit.craftbukkit.v1_16_R1.attribute.CraftAttributeMap in project MyPet by xXKeyleXx.
the class EntityMyPet method replaceCraftAttributes.
protected void replaceCraftAttributes() {
Field craftAttributesField = ReflectionUtil.getField(EntityLiving.class, "craftAttributes");
CraftAttributeMap craftAttributes = new CraftAttributeMap(this.getAttributeMap());
ReflectionUtil.setFinalFieldValue(craftAttributesField, this, craftAttributes);
}
use of org.bukkit.craftbukkit.v1_16_R1.attribute.CraftAttributeMap in project MyPet by MyPetORG.
the class EntityMyPet method replaceCraftAttributes.
protected void replaceCraftAttributes() {
Field craftAttributesField = ReflectionUtil.getField(EntityLiving.class, "craftAttributes");
CraftAttributeMap craftAttributes = new CraftAttributeMap(this.getAttributeMap());
ReflectionUtil.setFinalFieldValue(craftAttributesField, this, craftAttributes);
}
Aggregations