mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
SPIGOT-7239: Getter/setter for player's enchantment seed
By: FreeSoccerHDX <freesoccerhdx@gmail.com>
This commit is contained in:
parent
cbc24baf79
commit
fed3e5b5bc
@ -44,6 +44,15 @@
|
|||||||
protected int jumpTriggerTime;
|
protected int jumpTriggerTime;
|
||||||
public float oBob;
|
public float oBob;
|
||||||
public float bob;
|
public float bob;
|
||||||
|
@@ -158,7 +173,7 @@
|
||||||
|
public int experienceLevel;
|
||||||
|
public int totalExperience;
|
||||||
|
public float experienceProgress;
|
||||||
|
- protected int enchantmentSeed;
|
||||||
|
+ public int enchantmentSeed;
|
||||||
|
protected final float defaultFlySpeed = 0.02F;
|
||||||
|
private int lastLevelUpTime;
|
||||||
|
private final GameProfile gameProfile;
|
||||||
@@ -169,6 +184,16 @@
|
@@ -169,6 +184,16 @@
|
||||||
@Nullable
|
@Nullable
|
||||||
public EntityFishingHook fishing;
|
public EntityFishingHook fishing;
|
||||||
|
@ -465,6 +465,16 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getEnchantmentSeed() {
|
||||||
|
return getHandle().enchantmentSeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setEnchantmentSeed(int i) {
|
||||||
|
getHandle().enchantmentSeed = i;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getExpToLevel() {
|
public int getExpToLevel() {
|
||||||
return getHandle().getXpNeededForNextLevel();
|
return getHandle().getXpNeededForNextLevel();
|
||||||
|
Loading…
Reference in New Issue
Block a user