Fixed support for 1.19 (Untested)

This commit is contained in:
OmerBenGera 2022-08-12 13:51:58 +03:00
parent 4ee9bc0960
commit 4dd84d53be
2 changed files with 2 additions and 33 deletions

View File

@ -64,13 +64,9 @@ public final class ChunkLoaderNPC extends EntityPlayer implements com.bgsoftware
super.a(this.boundingBox);
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
name = "getUUID",
type = Remap.Type.METHOD,
remappedName = "co")
@Override
public UUID getUniqueId() {
return super.co();
return getBukkitEntity().getUniqueId();
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
@ -82,15 +78,6 @@ public final class ChunkLoaderNPC extends EntityPlayer implements com.bgsoftware
ah();
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
name = "getBoundingBoxForCulling",
type = Remap.Type.METHOD,
remappedName = "cz")
@Override
public AxisAlignedBB cz() {
return this.boundingBox;
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
name = "remove",
type = Remap.Type.METHOD,

View File

@ -36,7 +36,7 @@ public final class EntityHolograms extends EntityArmorStand implements Hologram
@Remap(classPath = "net.minecraft.world.entity.decoration.ArmorStand", name = "setMarker", type = Remap.Type.METHOD, remappedName = "t")
@Remap(classPath = "net.minecraft.world.entity.Entity", name = "setCustomNameVisible", type = Remap.Type.METHOD, remappedName = "n")
@Remap(classPath = "net.minecraft.world.entity.Entity", name = "setBoundingBox", type = Remap.Type.METHOD, remappedName = "a")
public EntityHolograms(World world, double x, double y, double z){
public EntityHolograms(World world, double x, double y, double z) {
super(world, x, y, z);
j(true); // Invisible
a(true); // Small
@ -161,15 +161,6 @@ public final class EntityHolograms extends EntityArmorStand implements Hologram
return true;
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
name = "repositionEntityAfterLoad",
type = Remap.Type.METHOD,
remappedName = "bm")
@Override
public boolean bm() {
return false;
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
name = "setCustomName",
type = Remap.Type.METHOD,
@ -203,15 +194,6 @@ public final class EntityHolograms extends EntityArmorStand implements Hologram
// Prevent stand being equipped
}
@Remap(classPath = "net.minecraft.world.entity.Entity",
name = "getBoundingBoxForCulling",
type = Remap.Type.METHOD,
remappedName = "cz")
@Override
public AxisAlignedBB cz() {
return EMPTY_BOUND;
}
public void forceSetBoundingBox(AxisAlignedBB boundingBox) {
super.a(boundingBox);
}