mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Cleanup Explosion patch but keep bin compatibility by using asm hacks. Closes #9817
This commit is contained in:
2 files changed
+3
-18
No files matched your search
@@ -8,20 +8,3 @@
|
||||
Vec3 vec3 = new Vec3(this.x, this.y, this.z);
|
||||
|
||||
for(Entity entity : list) {
|
||||
@@ -345,6 +_,16 @@
|
||||
|
||||
public List<BlockPos> getToBlow() {
|
||||
return this.toBlow;
|
||||
+ }
|
||||
+
|
||||
+ @Deprecated(forRemoval = true, since = "1.20.4")
|
||||
+ public Vec3 getPosition() {
|
||||
+ return this.center();
|
||||
+ }
|
||||
+
|
||||
+ @Nullable
|
||||
+ public Entity getExploder() {
|
||||
+ return this.source;
|
||||
}
|
||||
|
||||
public Explosion.BlockInteraction getBlockInteraction() {
|
||||
@@ -7,7 +7,9 @@ var InsnNode = Java.type('org.objectweb.asm.tree.InsnNode')
|
||||
|
||||
function initializeCoreMod() {
|
||||
return {
|
||||
"getLanguage_bouncer": addBouncer("net.minecraft.network.play.client.CClientSettingsPacket", "func_149524_c", "getLanguage", "()Ljava/lang/String;"),
|
||||
//TODO: Remove in 1.20.5+
|
||||
"getPosition_bouncer": addBouncer("net.minecraft.world.level.Explosion", "m_307721_", "getPosition", "()Lnet/minecraft/world/phys/Vec3;"),
|
||||
"getExploder_bouncer": addBouncer("net.minecraft.world.level.Explosion", "m_253049_", "getExploder", "()Lnet/minecraft/world/entity/Entity;"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user