Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 06:20:06 +01:00
30 Zeilen
1.1 KiB
Diff
30 Zeilen
1.1 KiB
Diff
--- a/net/minecraft/server/EntityGuardian.java
|
|
+++ b/net/minecraft/server/EntityGuardian.java
|
|
@@ -14,7 +14,7 @@
|
|
private EntityLiving bo;
|
|
private int bp;
|
|
private boolean bq;
|
|
- private PathfinderGoalRandomStroll goalRandomStroll;
|
|
+ public PathfinderGoalRandomStroll goalRandomStroll; // CraftBukkit - public
|
|
|
|
public EntityGuardian(World world) {
|
|
super(world);
|
|
@@ -35,7 +35,7 @@
|
|
this.b = this.a = this.random.nextFloat();
|
|
}
|
|
|
|
- protected void initAttributes() {
|
|
+ public void initAttributes() { // CraftBukkit - public
|
|
super.initAttributes();
|
|
this.getAttributeInstance(GenericAttributes.ATTACK_DAMAGE).setValue(6.0D);
|
|
this.getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(0.5D);
|
|
@@ -516,7 +516,7 @@
|
|
return (entityliving instanceof EntityHuman || entityliving instanceof EntitySquid) && entityliving.h(this.a) > 9.0D;
|
|
}
|
|
|
|
- public boolean apply(Object object) {
|
|
+ public boolean apply(EntityLiving object) { // CraftBukkit - fix decompile error
|
|
return this.a((EntityLiving) object);
|
|
}
|
|
}
|