2020-08-11 23:00:00 +02:00
|
|
|
--- a/net/minecraft/server/ShapeDetectorShape.java
|
|
|
|
+++ b/net/minecraft/server/ShapeDetectorShape.java
|
2020-08-14 00:26:40 +02:00
|
|
|
@@ -1,13 +1,21 @@
|
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
+import org.bukkit.craftbukkit.event.CraftPortalEvent; // CraftBukkit
|
|
|
|
+
|
|
|
|
public class ShapeDetectorShape {
|
|
|
|
|
|
|
|
public final Vec3D position;
|
2020-08-11 23:00:00 +02:00
|
|
|
public final Vec3D velocity;
|
|
|
|
public final float yaw;
|
|
|
|
public final float pitch;
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ public final WorldServer world;
|
2020-08-14 00:26:40 +02:00
|
|
|
+ public final CraftPortalEvent portalEventInfo;
|
2020-08-11 23:00:00 +02:00
|
|
|
|
|
|
|
- public ShapeDetectorShape(Vec3D vec3d, Vec3D vec3d1, float f, float f1) {
|
2020-08-14 00:26:40 +02:00
|
|
|
+ public ShapeDetectorShape(Vec3D vec3d, Vec3D vec3d1, float f, float f1, WorldServer world, CraftPortalEvent portalEventInfo) {
|
2020-08-11 23:00:00 +02:00
|
|
|
+ this.world = world;
|
2020-08-14 00:26:40 +02:00
|
|
|
+ this.portalEventInfo = portalEventInfo;
|
2020-08-11 23:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
|
|
|
this.position = vec3d;
|
|
|
|
this.velocity = vec3d1;
|
|
|
|
this.yaw = f;
|