if(te == null) {
return null;
}
if(te instanceof IMultiblockGuiHandler) {
IMultiblockGuiHandler part = (IMultiblockGuiHandler)te;
return part.getGuiElement(player.inventory);
}
else if(te instanceof IBeefGuiEntity) {
return ((IBeefGuiEntity)te).getGUI(player);
}