Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
SPIGOT-4338: breedCause API
Dieser Commit ist enthalten in:
Ursprung
dc69d2b3db
Commit
60d7982024
@ -1,9 +1,11 @@
|
||||
--- a/net/minecraft/server/EntityAnimal.java
|
||||
+++ b/net/minecraft/server/EntityAnimal.java
|
||||
@@ -8,6 +8,7 @@
|
||||
@@ -7,7 +7,8 @@
|
||||
|
||||
protected Block bF;
|
||||
private int bC;
|
||||
private UUID bD;
|
||||
- private UUID bD;
|
||||
+ public UUID bD; // PAIL
|
||||
+ public ItemStack breedItem; // CraftBukkit - Add breedItem variable
|
||||
|
||||
protected EntityAnimal(EntityTypes<?> entitytypes, World world) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package org.bukkit.craftbukkit.entity;
|
||||
|
||||
import java.util.UUID;
|
||||
import net.minecraft.server.EntityAnimal;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.Animals;
|
||||
@ -19,4 +20,14 @@ public class CraftAnimals extends CraftAgeable implements Animals {
|
||||
public String toString() {
|
||||
return "CraftAnimals";
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getBreedCause() {
|
||||
return getHandle().bD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBreedCause(UUID uuid) {
|
||||
getHandle().bD = uuid;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren