mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 12:37:42 +01:00
Fix wrong metadata method calls
This commit is contained in:
parent
6cc0ade409
commit
0cdc017c68
@ -73,7 +73,7 @@ public class LivingEntityMeta extends EntityMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setArrowCount(int value) {
|
public void setArrowCount(int value) {
|
||||||
super.metadata.getIndex(OFFSET + 4, Metadata.VarInt(value));
|
super.metadata.setIndex(OFFSET + 4, Metadata.VarInt(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getHealthAddedByAbsorption() {
|
public int getHealthAddedByAbsorption() {
|
||||||
@ -81,7 +81,7 @@ public class LivingEntityMeta extends EntityMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setHealthAddedByAbsorption(int value) {
|
public void setHealthAddedByAbsorption(int value) {
|
||||||
super.metadata.getIndex(OFFSET + 5, Metadata.VarInt(value));
|
super.metadata.setIndex(OFFSET + 5, Metadata.VarInt(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@ -25,7 +25,7 @@ public class PigMeta extends AnimalMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setTimeToBoost(int value) {
|
public void setTimeToBoost(int value) {
|
||||||
super.metadata.getIndex(OFFSET + 1, Metadata.VarInt(value));
|
super.metadata.setIndex(OFFSET + 1, Metadata.VarInt(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ public class EnderDragonMeta extends MobMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setPhase(@NotNull Phase value) {
|
public void setPhase(@NotNull Phase value) {
|
||||||
super.metadata.getIndex(OFFSET, Metadata.VarInt(value.ordinal()));
|
super.metadata.setIndex(OFFSET, Metadata.VarInt(value.ordinal()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Phase {
|
public enum Phase {
|
||||||
|
Loading…
Reference in New Issue
Block a user