Skip to content

Commit

Permalink
remove perspective item render
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlimiter committed Jun 9, 2022
1 parent 1b698cd commit 1d67e69
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;
import net.minecraftforge.client.IItemRenderProperties;
import nova.committee.avaritia.api.client.render.SimpleCustomRenderer;
import nova.committee.avaritia.client.render.item.PerspectiveItemRender;
import nova.committee.avaritia.common.entity.ImmortalItemEntity;
import nova.committee.avaritia.init.registry.ModEntities;
import nova.committee.avaritia.init.registry.ModTab;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;
import java.util.function.Consumer;

/**
* Description:
Expand Down Expand Up @@ -59,9 +55,9 @@ public Entity createEntity(Level level, Entity location, ItemStack stack) {
return ImmortalItemEntity.create(ModEntities.IMMORTAL.get(), level, location.getX(), location.getY(), location.getZ(), stack);
}

@Override
public void initializeClient(Consumer<IItemRenderProperties> consumer) {
consumer.accept(SimpleCustomRenderer.create(this, new PerspectiveItemRender(name)));
}
// @Override
// public void initializeClient(Consumer<IItemRenderProperties> consumer) {
// consumer.accept(SimpleCustomRenderer.create(this, new PerspectiveItemRender(name)));
// }

}

0 comments on commit 1d67e69

Please sign in to comment.