use of net.minecraft.entity.item.ItemEntity in project AgriCraft by AgriCraft.
the class MagnifyingGlassGenomeInspector method onInspectionStart.
@Override
public void onInspectionStart(World world, Entity entity, PlayerEntity player) {
ItemEntity item = (ItemEntity) entity;
IAgriGeneCarrierItem seed = (IAgriGeneCarrierItem) item.getItem().getItem();
this.genomeCache = seed.getGenome(item.getItem()).map(IAgriGenome::getGeneList).orElse(ImmutableList.of());
}
Aggregations