Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Add CraftMagmaCube
Dieser Commit ist enthalten in:
Ursprung
9c2b11ae94
Commit
c0073e466d
82
src/main/java/net/minecraft/server/EntityLavaSlime.java
Normale Datei
82
src/main/java/net/minecraft/server/EntityLavaSlime.java
Normale Datei
@ -0,0 +1,82 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
public class EntityLavaSlime extends EntitySlime {
|
||||
|
||||
public EntityLavaSlime(World world) {
|
||||
super(world);
|
||||
this.texture = "/mob/lava.png";
|
||||
this.fireProof = true;
|
||||
this.ak = 0.2F;
|
||||
}
|
||||
|
||||
public boolean g() {
|
||||
return this.world.difficulty > 0 && this.world.containsEntity(this.boundingBox) && this.world.getEntities(this, this.boundingBox).size() == 0 && !this.world.c(this.boundingBox);
|
||||
}
|
||||
|
||||
protected int O() {
|
||||
return this.getSize() * 3;
|
||||
}
|
||||
|
||||
public float a(float f) {
|
||||
return 1.0F;
|
||||
}
|
||||
|
||||
protected String w() {
|
||||
return "flame";
|
||||
}
|
||||
|
||||
protected EntitySlime y() {
|
||||
return new EntityLavaSlime(this.world);
|
||||
}
|
||||
|
||||
protected int e() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean z() {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected int A() {
|
||||
return super.A() * 4;
|
||||
}
|
||||
|
||||
protected void B() {
|
||||
this.a *= 0.9F;
|
||||
}
|
||||
|
||||
protected void X() {
|
||||
this.motY = (double) (0.42F + (float) this.getSize() * 0.1F);
|
||||
this.cb = true;
|
||||
}
|
||||
|
||||
protected void b(float f) {}
|
||||
|
||||
protected boolean C() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected int D() {
|
||||
return super.D() + 2;
|
||||
}
|
||||
|
||||
protected String m() {
|
||||
return "mob.slime";
|
||||
}
|
||||
|
||||
protected String n() {
|
||||
return "mob.slime";
|
||||
}
|
||||
|
||||
protected String E() {
|
||||
return this.getSize() > 1 ? "mob.magmacube.big" : "mob.magmacube.small";
|
||||
}
|
||||
|
||||
public boolean aA() {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected boolean G() {
|
||||
return true;
|
||||
}
|
||||
}
|
22
src/main/java/org/bukkit/craftbukkit/entity/CraftMagmaCube.java
Normale Datei
22
src/main/java/org/bukkit/craftbukkit/entity/CraftMagmaCube.java
Normale Datei
@ -0,0 +1,22 @@
|
||||
package org.bukkit.craftbukkit.entity;
|
||||
|
||||
|
||||
import net.minecraft.server.EntityLavaSlime;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.MagmaCube;
|
||||
|
||||
public class CraftMagmaCube extends CraftSlime implements MagmaCube {
|
||||
|
||||
public CraftMagmaCube(CraftServer server, EntityLavaSlime entity) {
|
||||
super(server, entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftMagmaCube";
|
||||
}
|
||||
|
||||
public EntityLavaSlime getHandle() {
|
||||
return (EntityLavaSlime) super.getHandle();
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren