mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 02:07:37 +01:00
#870: Add isTrusting/setTrusting to CraftOcelot.
By: Ibrahim Ansari <ansari.ibrahim1@gmail.com>
This commit is contained in:
parent
690c8b65a1
commit
46a09d53f1
@ -1,5 +1,19 @@
|
||||
--- a/net/minecraft/world/entity/animal/EntityOcelot.java
|
||||
+++ b/net/minecraft/world/entity/animal/EntityOcelot.java
|
||||
@@ -68,11 +68,11 @@
|
||||
this.t();
|
||||
}
|
||||
|
||||
- boolean isTrusting() {
|
||||
+ public boolean isTrusting() {
|
||||
return (Boolean) this.entityData.get(EntityOcelot.DATA_TRUSTING);
|
||||
}
|
||||
|
||||
- private void setTrusting(boolean flag) {
|
||||
+ public void setTrusting(boolean flag) {
|
||||
this.entityData.set(EntityOcelot.DATA_TRUSTING, flag);
|
||||
this.t();
|
||||
}
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
@Override
|
||||
|
@ -16,6 +16,16 @@ public class CraftOcelot extends CraftAnimals implements Ocelot {
|
||||
return (EntityOcelot) entity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTrusting() {
|
||||
return getHandle().isTrusting();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTrusting(boolean trust) {
|
||||
getHandle().setTrusting(trust);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type getCatType() {
|
||||
return Type.WILD_OCELOT;
|
||||
|
Loading…
Reference in New Issue
Block a user