mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Fix botania compat #379
This commit is contained in:
1 parent
70c8fd1131
commit
34f8a5e65c
2 files changed
+9
-6
No files matched your search
@@ -1,24 +1,26 @@
|
||||
package com.cricketcraft.chisel.api;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
/**
|
||||
* This extension of {@link IFacade} allows the block to say whether or not OTHER CTM blocks can connect to IT.
|
||||
*/
|
||||
public interface IConnectable extends IFacade {
|
||||
public interface IConnectable {
|
||||
|
||||
/**
|
||||
* Determines whether other CTM blocks can connect to this one.
|
||||
*
|
||||
* @param world
|
||||
* @param x
|
||||
* The X position of the block that is connecting to this one. NOT the position of your block.
|
||||
* @param y
|
||||
* The Y position of the block that is connecting to this one. NOT the position of your block.
|
||||
* @param z
|
||||
* @param from
|
||||
* The direction that the block is connecting from. This differes from the {@link IFacade} methods in that it is NOT the side which is being rendered.
|
||||
* The Z position of the block that is connecting to this one. NOT the position of your block.
|
||||
* @param side
|
||||
* The side being drawn.
|
||||
* @return True if a block can connect to this one from the given direction. False otherwise.
|
||||
*/
|
||||
boolean canConnectCTM(IBlockAccess world, int x, int y, int z, ForgeDirection from);
|
||||
boolean canConnectCTM(IBlockAccess world, int x, int y, int z, int side);
|
||||
|
||||
}
|
||||
@@ -82,7 +82,8 @@ public class Compatibility {
|
||||
addSupport("TConstruct", "decoration.multibrickfancy", "stonebricksmooth", 14, 99);
|
||||
addSupport("TConstruct", "decoration.multibrickfancy", "stonebricksmooth", 15, 99);
|
||||
|
||||
addSupport("Botania", "endStoneBrick", "end_stone", 12, 0);
|
||||
addSupport("Botania", "endStoneBrick", "end_stone", 0, 0);
|
||||
addSupport("Botania", "endStoneBrick", "end_stone", 1, 0);
|
||||
|
||||
if(Loader.isModLoaded("EE3")){
|
||||
loadEE3Values();
|
||||
|
||||
Reference in new issue
Block a user