Skip to content

Commit

Permalink
Bug,解决,好耶!
Browse files Browse the repository at this point in the history
  • Loading branch information
CSneko committed Oct 9, 2024
1 parent f00cc9a commit 2518cdf
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
import software.bernie.geckolib.renderer.GeoArmorRenderer;
import software.bernie.geckolib.util.GeckoLibUtil;

import javax.annotation.Nullable;
import java.util.function.Consumer;
import java.util.function.Supplier;

public abstract class NekoArmor<N extends Item & GeoItem> extends DyeableArmorItem implements GeoItem {
public final AnimatableInstanceCache cache;
private final Supplier<Object> renderProvider = GeoItem.makeRenderer(this);
public NekoArmor(ArmorMaterial material, Type type, Properties settings) {
super(material, type, settings);
SingletonGeoAnimatable.registerSyncedAnimatable(this);
Expand Down Expand Up @@ -87,7 +87,7 @@ public AnimatableInstanceCache getAnimatableInstanceCache() {

@Override
public Supplier<Object> getRenderProvider() {
return null;
return this.renderProvider;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"result": {
"id": "toneko:neko_collector",
"item": "toneko:neko_collector",
"count": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"result": {
"id": "toneko:neko_ears",
"item": "toneko:neko_ears",
"count": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
},
"result": {
"id": "toneko:neko_tail",
"item": "toneko:neko_tail",
"count": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public NekoEntity(EntityType<? extends NekoEntity> entityType, Level level) {
this.cache = GeckoLibUtil.createInstanceCache(this);
}

protected void defineSynchedData() {
super.defineSynchedData();
this.entityData.define(SKIN_DATA_ID,"grmmy");
}

@Override
public void readAdditionalSaveData(@NotNull CompoundTag nbt) {
super.readAdditionalSaveData(nbt);
Expand Down

0 comments on commit 2518cdf

Please sign in to comment.