mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-28 15:39:09 +02:00
ab76551cde
also various generics/deprecation stuff cuz wabealwdnamflkaw. Might put fake air block back if lex doesnt know how to make dummy blocks work
42 lines
1.3 KiB
Java
42 lines
1.3 KiB
Java
/*
|
|
* This file ("IMCHandler.java") is part of the Actually Additions mod for Minecraft.
|
|
* It is created and owned by Ellpeck and distributed
|
|
* under the Actually Additions License to be found at
|
|
* http://ellpeck.de/actaddlicense
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015-2017 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.util.compat;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.*;
|
|
import de.ellpeck.actuallyadditions.mod.blocks.base.BlockPlant;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraftforge.fml.common.event.FMLInterModComms;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
|
public final class IMCHandler{
|
|
|
|
private static final Class<?>[] NO_CARRYING = new Class<?>[]{
|
|
BlockGiantChest.class,
|
|
BlockWildPlant.class,
|
|
BlockPlant.class,
|
|
BlockPhantom.class,
|
|
BlockTinyTorch.class,
|
|
BlockItemViewer.class,
|
|
BlockItemViewerHopping.class,
|
|
BlockLaserRelay.class
|
|
};
|
|
|
|
public static void doBlockIMC(Block block){
|
|
boolean allow = !ArrayUtils.contains(NO_CARRYING, block.getClass());
|
|
FMLInterModComms.sendMessage("charset", (allow ? "add" : "remove")+"Carry", block.getRegistryName());
|
|
}
|
|
|
|
public static void doItemIMC(Item item){
|
|
|
|
}
|
|
}
|