generated from MrSphay/codex-agent-repository-kit
46 lines
1.6 KiB
Java
46 lines
1.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.vinlanx.explosionoverhaul;
|
|
|
|
import com.vinlanx.explosionoverhaul.VinlanxTheLightItemRenderer;
|
|
import java.util.function.Consumer;
|
|
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
|
import net.minecraft.world.item.BlockItem;
|
|
import net.minecraft.world.item.Item;
|
|
import net.minecraft.world.level.block.Block;
|
|
import net.minecraftforge.client.extensions.common.IClientItemExtensions;
|
|
import software.bernie.geckolib.animatable.GeoItem;
|
|
import software.bernie.geckolib.core.animatable.GeoAnimatable;
|
|
import software.bernie.geckolib.core.animatable.instance.AnimatableInstanceCache;
|
|
import software.bernie.geckolib.core.animation.AnimatableManager;
|
|
import software.bernie.geckolib.util.GeckoLibUtil;
|
|
|
|
public class VinlanxTheLightItem
|
|
extends BlockItem
|
|
implements GeoItem {
|
|
private final AnimatableInstanceCache cache = GeckoLibUtil.createInstanceCache((GeoAnimatable)this);
|
|
|
|
public VinlanxTheLightItem(Block block, Item.Properties properties) {
|
|
super(block, properties);
|
|
}
|
|
|
|
public void registerControllers(AnimatableManager.ControllerRegistrar controllers) {
|
|
}
|
|
|
|
public void initializeClient(Consumer<IClientItemExtensions> consumer) {
|
|
consumer.accept(new IClientItemExtensions(){
|
|
private final VinlanxTheLightItemRenderer renderer = new VinlanxTheLightItemRenderer();
|
|
|
|
public BlockEntityWithoutLevelRenderer getCustomRenderer() {
|
|
return this.renderer;
|
|
}
|
|
});
|
|
}
|
|
|
|
public AnimatableInstanceCache getAnimatableInstanceCache() {
|
|
return this.cache;
|
|
}
|
|
}
|
|
|