mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-28 14:37:31 +02:00
Rename outdated LivingEntityMeta methods (#960)
This commit is contained in:
parent
765d6057da
commit
d17c95b826
@ -76,14 +76,44 @@ public class LivingEntityMeta extends EntityMeta {
|
||||
super.metadata.setIndex(OFFSET + 4, Metadata.VarInt(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* This returns the bee stinger count, not the absorption heart count
|
||||
* Use {@link #getBeeStingerCount()} instead
|
||||
* @return The number of bee stingers in this entity
|
||||
*/
|
||||
@Deprecated
|
||||
public int getHealthAddedByAbsorption() {
|
||||
return super.metadata.getIndex(OFFSET + 5, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* This sets the bee stinger count, not the absorption heart count
|
||||
* Use {@link #setBeeStingerCount(int)} instead
|
||||
* @param value The number of bee stingers for this entity to have
|
||||
*/
|
||||
@Deprecated
|
||||
public void setHealthAddedByAbsorption(int value) {
|
||||
super.metadata.setIndex(OFFSET + 5, Metadata.VarInt(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the amount of bee stingers in this entity
|
||||
* @return The amount of bee stingers
|
||||
*/
|
||||
public int getBeeStingerCount() {
|
||||
return super.metadata.getIndex(OFFSET + 5, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the amount of bee stingers in this entity
|
||||
* @param value The amount of bee stingers to set, use 0 to clear all stingers
|
||||
*/
|
||||
public void setBeeStingerCount(int value) {
|
||||
super.metadata.setIndex(OFFSET + 5, Metadata.VarInt(value));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Point getBedInWhichSleepingPosition() {
|
||||
return super.metadata.getIndex(OFFSET + 6, null);
|
||||
|
Loading…
Reference in New Issue
Block a user