Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Added hasSaddle/getSaddle
Dieser Commit ist enthalten in:
Ursprung
4ae695a176
Commit
73aa3ac03c
@ -1,20 +1,28 @@
|
|||||||
package org.bukkit.craftbukkit.entity;
|
package org.bukkit.craftbukkit.entity;
|
||||||
|
|
||||||
import net.minecraft.server.EntityPig;
|
import net.minecraft.server.EntityPig;
|
||||||
|
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
|
||||||
import org.bukkit.entity.Pig;
|
import org.bukkit.entity.Pig;
|
||||||
|
|
||||||
public class CraftPig extends CraftAnimals implements Pig {
|
public class CraftPig extends CraftAnimals implements Pig {
|
||||||
|
|
||||||
public CraftPig(CraftServer server, EntityPig entity) {
|
public CraftPig(CraftServer server, EntityPig entity) {
|
||||||
super(server, entity);
|
super(server, entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasSaddle() {
|
||||||
|
return getHandle().x();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSaddle(boolean flag) {
|
||||||
|
getHandle().a(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntityPig getHandle() {
|
||||||
|
return (EntityPig) super.getHandle();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftPig";
|
return "CraftPig";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren