Reinstate the MinecartCollisionHandler field to AbstractMinecartEntity (#7748) Closes #7506.

This commit is contained in:
Curle authored and GitHub committed 2021-05-17 13:51:23 -07:00
1 parent 167f14f4a1
commit 8211a5048a
3 files changed
+26 -1

No files matched your search

@@ -25,7 +25,7 @@ import net.minecraft.entity.item.minecart.AbstractMinecartEntity;
/**
* This class defines a replacement for the default minecart collision code.
* Only one handler can be registered at a time. It it registered with EntityMinecart.registerCollisionHandler().
* Only one handler can be registered at a time. It it registered with AbstractMinecartEntity.registerCollisionHandler().
* If you use this, make it a configuration option.
* @author CovertJaguar
*/
@@ -32,6 +32,7 @@ public interface IForgeEntityMinecart
public static float DEFAULT_MAX_SPEED_AIR_LATERAL = 0.4f;
public static float DEFAULT_MAX_SPEED_AIR_VERTICAL = -1.0f;
public static double DEFAULT_AIR_DRAG = 0.95f;
/** TODO: Remove 1.17 */
public static IMinecartCollisionHandler COLLISIONS = null;
default AbstractMinecartEntity getMinecart() {
@@ -41,6 +42,7 @@ public interface IForgeEntityMinecart
/**
* Gets the current global Minecart Collision handler if none
* is registered, returns null
* TODO: remove 1.17
* @return The collision handler or null
*/
default IMinecartCollisionHandler getCollisionHandler() {