mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Removed Railcraft support for the Mana Pool with Minecart.
As the Railcraft API for 1.12.2 is highly unstable, and crashes with the current version of Botania installed, I removed the implementation of IMinecartItem and all corresponding methods. The Mana Pool with Minecart still functions fine with railcraft, but now it doesn't crash anymore
This commit is contained in:
1 parent
8e2b09527a
commit
49638c0aa6
2 files changed
+1
-75
No files matched your search
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* ******************************************************************************
|
||||
* Copyright 2011-2015 CovertJaguar
|
||||
*
|
||||
* This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
|
||||
* ***************************************************************************
|
||||
*/
|
||||
|
||||
package mods.railcraft.api.core.items;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import net.minecraft.entity.item.EntityMinecart;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* This interface should be implemented by any cart item,
|
||||
* but it is generally optional.
|
||||
*
|
||||
* @author CovertJaguar <http://www.railcraft.info>
|
||||
*/
|
||||
public interface IMinecartItem
|
||||
{
|
||||
|
||||
/**
|
||||
* Controls whether this cart item can be placed by the Cart and Train Dispensers.
|
||||
*
|
||||
* Generally, you can ignore the placeCart() function if this returns false.
|
||||
*
|
||||
* @param cart
|
||||
* @return true if it can be placed, false otherwise
|
||||
*/
|
||||
public boolean canBePlacedByNonPlayer(ItemStack cart);
|
||||
|
||||
/**
|
||||
* Places a cart at the specified location.
|
||||
*
|
||||
* Implementing this function is optional.
|
||||
*
|
||||
* @param owner the name of the player placing the cart or "[MyMod]" with the brackets
|
||||
* @param cart An ItemStack that contains the cart
|
||||
* @param world The World
|
||||
* @param i x-Coord
|
||||
* @param j y-Coord
|
||||
* @param k z-Coord
|
||||
* @return the cart placed or null if failed
|
||||
*/
|
||||
public EntityMinecart placeCart(GameProfile owner, ItemStack cart, World world, int i, int j, int k);
|
||||
}
|
||||
Reference in new issue
Block a user