*punches gradle* Stop being dumb

This commit is contained in:
Sollace 2024-12-15 19:35:18 +01:00
parent bb01cec530
commit 58151e78c4
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
4 changed files with 7 additions and 7 deletions

View file

@ -22,8 +22,7 @@ abstract class MixinPlayerMoveC2SPacket implements Packet<ServerPlayPacketListen
@Shadow @Final @Shadow @Final
protected boolean changeLook; protected boolean changeLook;
@Inject(method = "<init>(DDDFFZZZ)V", @Inject(method = "<init>(DDDFFZZZZ)V", at = @At("RETURN"))
at = @At("RETURN"))
private void onInit(CallbackInfo info) { private void onInit(CallbackInfo info) {
if (changeLook) { if (changeLook) {
pitch = HorseCam.transformCameraAngle(pitch); pitch = HorseCam.transformCameraAngle(pitch);

View file

@ -123,7 +123,7 @@ public class PonyStandRenderer extends LivingEntityRenderer<ArmorStandEntity, Po
FeatureRendererContext<PonyRenderState, EarthPonyModel<PonyRenderState>>, FeatureRendererContext<PonyRenderState, EarthPonyModel<PonyRenderState>>,
PonyRenderContext<ArmorStandEntity, PonyRenderState, EarthPonyModel<PonyRenderState>> { PonyRenderContext<ArmorStandEntity, PonyRenderState, EarthPonyModel<PonyRenderState>> {
private final EquineRenderManager<ArmorStandEntity, PonyRenderState, EarthPonyModel<PonyRenderState>> manager private final EquineRenderManager<ArmorStandEntity, PonyRenderState, EarthPonyModel<PonyRenderState>> manager
= new EquineRenderManager<>(this, (state, stack, progress, yaw) -> {}, ModelType.EARTH_PONY.create(false)); = new EquineRenderManager<ArmorStandEntity, PonyRenderState, EarthPonyModel<PonyRenderState>>(this, (state, stack, progress, yaw) -> {}, ModelType.EARTH_PONY.create(false));
@Override @Override
public Pony getEntityPony(ArmorStandEntity entity) { public Pony getEntityPony(ArmorStandEntity entity) {

View file

@ -46,7 +46,7 @@ public class SkeleponyRenderer<T extends AbstractSkeletonEntity, S extends Skele
public static SkeleponyRenderer<StrayEntity, State> stray(EntityRendererFactory.Context context) { public static SkeleponyRenderer<StrayEntity, State> stray(EntityRendererFactory.Context context) {
return PonyRenderer.appendFeature(new SkeleponyRenderer<StrayEntity, State>(context, STRAY, 1), ctx -> { return PonyRenderer.appendFeature(new SkeleponyRenderer<StrayEntity, State>(context, STRAY, 1), ctx -> {
return new ClothingFeature<>(ctx, ModelType.SKELETON_CLOTHES, STRAY_SKELETON_OVERLAY); return new ClothingFeature<State, SkeleponyModel<State>>(ctx, ModelType.SKELETON_CLOTHES, STRAY_SKELETON_OVERLAY);
}); });
} }
@ -57,7 +57,7 @@ public class SkeleponyRenderer<T extends AbstractSkeletonEntity, S extends Skele
return new BoggedState(); return new BoggedState();
} }
}, ctx -> { }, ctx -> {
return new ClothingFeature<>(ctx, ModelType.SKELETON_CLOTHES, BOGGED_SKELETON_OVERLAY); return new ClothingFeature<BoggedState, SkeleponyModel<BoggedState>>(ctx, ModelType.SKELETON_CLOTHES, BOGGED_SKELETON_OVERLAY);
}), BoggedMushroomsFeature::new); }), BoggedMushroomsFeature::new);
} }

View file

@ -5,6 +5,7 @@ import com.minelittlepony.api.model.PonyModel;
import com.minelittlepony.api.pony.Pony; import com.minelittlepony.api.pony.Pony;
import com.minelittlepony.client.MineLittlePony; import com.minelittlepony.client.MineLittlePony;
import com.minelittlepony.client.model.ModelType; import com.minelittlepony.client.model.ModelType;
import com.minelittlepony.client.model.entity.IllagerPonyModel;
import com.minelittlepony.client.model.entity.race.AlicornModel; import com.minelittlepony.client.model.entity.race.AlicornModel;
import com.minelittlepony.client.render.entity.npc.textures.TextureSupplier; import com.minelittlepony.client.render.entity.npc.textures.TextureSupplier;
import com.minelittlepony.client.render.entity.state.PonyRenderState; import com.minelittlepony.client.render.entity.state.PonyRenderState;
@ -51,11 +52,11 @@ public class IllagerPonyRenderer<
} }
public static IllagerPonyRenderer<VindicatorEntity, ?, ?> vindicator(EntityRendererFactory.Context context) { public static IllagerPonyRenderer<VindicatorEntity, ?, ?> vindicator(EntityRendererFactory.Context context) {
return new IllagerPonyRenderer<>(context, (ModelKey<?>)ModelType.ILLAGER, VINDICATOR); return new IllagerPonyRenderer<VindicatorEntity, State, IllagerPonyModel<State>>(context, ModelType.ILLAGER, VINDICATOR);
} }
public static IllagerPonyRenderer<EvokerEntity, ?, ?> evoker(EntityRendererFactory.Context context) { public static IllagerPonyRenderer<EvokerEntity, ?, ?> evoker(EntityRendererFactory.Context context) {
return new IllagerPonyRenderer<>(context, (ModelKey<?>)ModelType.ILLAGER, EVOKER); return new IllagerPonyRenderer<EvokerEntity, State, IllagerPonyModel<State>>(context,ModelType.ILLAGER, EVOKER);
} }
public static class State extends PonyRenderState { public static class State extends PonyRenderState {