Added custom item entity support via mixin.

This commit is contained in:
Sebastian Hartte
2020-08-03 15:10:25 +02:00
parent 541f07a7e3
commit 63c251294e
9 changed files with 133 additions and 59 deletions
@@ -0,0 +1,16 @@
package appeng.hooks;
import net.minecraft.entity.Entity;
import net.minecraft.entity.ItemEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.server.world.ServerWorld;
public interface AECustomEntityItem {
/**
* @return Either a new entity (not added to the world yet), or the original one
* to keep it.
*/
Entity replaceItemEntity(ServerWorld world, ItemEntity itemEntity, ItemStack itemStack);
}