mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-03-15 16:10:05 +01:00
More name changes
This commit is contained in:
parent
7b8a8fa3c4
commit
270e655f91
40 changed files with 150 additions and 151 deletions
|
@ -1,6 +1,6 @@
|
||||||
package com.minelittlepony.client.model;
|
package com.minelittlepony.client.model;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.armour.ModelPonyArmour;
|
import com.minelittlepony.client.model.armour.PonyArmourModel;
|
||||||
import com.minelittlepony.client.model.armour.ArmourWrapper;
|
import com.minelittlepony.client.model.armour.ArmourWrapper;
|
||||||
import com.minelittlepony.client.transform.PonyTransformation;
|
import com.minelittlepony.client.transform.PonyTransformation;
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
|
@ -45,7 +45,7 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IEquestrianArmour<?> createArmour() {
|
public IEquestrianArmour<?> createArmour() {
|
||||||
return new ArmourWrapper<>(ModelPonyArmour::new);
|
return new ArmourWrapper<>(PonyArmourModel::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,9 +4,9 @@ import net.minecraft.client.render.entity.model.SkullEntityModel;
|
||||||
|
|
||||||
import com.minelittlepony.mson.api.model.BoxBuilder;
|
import com.minelittlepony.mson.api.model.BoxBuilder;
|
||||||
|
|
||||||
public class ModelDeadMau5Ears extends SkullEntityModel {
|
public class DJPon3EarsModel extends SkullEntityModel {
|
||||||
|
|
||||||
public ModelDeadMau5Ears() {
|
public DJPon3EarsModel() {
|
||||||
super(24, 0, 64, 64);
|
super(24, 0, 64, 64);
|
||||||
((BoxBuilder.ContentAccessor)skull).cubes().clear();
|
((BoxBuilder.ContentAccessor)skull).cubes().clear();
|
||||||
skull.addCuboid(-9, -13, -1, 6, 6, 1, 0);
|
skull.addCuboid(-9, -13, -1, 6, 6, 1, 0);
|
|
@ -5,23 +5,23 @@ import net.minecraft.entity.LivingEntity;
|
||||||
import net.minecraft.entity.mob.VexEntity;
|
import net.minecraft.entity.mob.VexEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.armour.ModelPonyArmour;
|
import com.minelittlepony.client.model.armour.PonyArmourModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelBreezie;
|
import com.minelittlepony.client.model.entity.BreezieModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelEnderStallion;
|
import com.minelittlepony.client.model.entity.EnderStallionModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelGuardianPony;
|
import com.minelittlepony.client.model.entity.GuardianPonyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelIllagerPony;
|
import com.minelittlepony.client.model.entity.IllagerPonyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelPillagerPony;
|
import com.minelittlepony.client.model.entity.PillagerPonyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelSkeletonPony;
|
import com.minelittlepony.client.model.entity.SkeleponyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelVillagerPony;
|
import com.minelittlepony.client.model.entity.VillagerPonyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelWitchPony;
|
import com.minelittlepony.client.model.entity.WitchPonyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelZombiePony;
|
import com.minelittlepony.client.model.entity.ZomponyModel;
|
||||||
import com.minelittlepony.client.model.entity.ModelZombieVillagerPony;
|
import com.minelittlepony.client.model.entity.ZomponyVillagerModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelChangeling;
|
import com.minelittlepony.client.model.entity.race.ChangelingModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelEarthPony;
|
import com.minelittlepony.client.model.entity.race.EarthPonyModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelPegasus;
|
import com.minelittlepony.client.model.entity.race.PegasusModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelUnicorn;
|
import com.minelittlepony.client.model.entity.race.UnicornModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelZebra;
|
import com.minelittlepony.client.model.entity.race.ZebraModel;
|
||||||
import com.minelittlepony.client.model.gear.ChristmasHat;
|
import com.minelittlepony.client.model.gear.ChristmasHat;
|
||||||
import com.minelittlepony.client.model.gear.Muffin;
|
import com.minelittlepony.client.model.gear.Muffin;
|
||||||
import com.minelittlepony.client.model.gear.SaddleBags;
|
import com.minelittlepony.client.model.gear.SaddleBags;
|
||||||
|
@ -49,22 +49,22 @@ public final class ModelType {
|
||||||
private static final Map<Race, PlayerModelKey<?, ?>> PLAYER_MODELS = new HashMap<>();
|
private static final Map<Race, PlayerModelKey<?, ?>> PLAYER_MODELS = new HashMap<>();
|
||||||
private static final Map<Wearable, ModelKey<? extends IGear>> GEAR_MODELS = new HashMap<>();
|
private static final Map<Wearable, ModelKey<? extends IGear>> GEAR_MODELS = new HashMap<>();
|
||||||
|
|
||||||
public static final ModelKey<ModelVillagerPony<?>> VILLAGER = register("villager", ModelVillagerPony::new);
|
public static final ModelKey<VillagerPonyModel<?>> VILLAGER = register("villager", VillagerPonyModel::new);
|
||||||
public static final ModelKey<ModelWitchPony> WITCH = register("witch", ModelWitchPony::new);
|
public static final ModelKey<WitchPonyModel> WITCH = register("witch", WitchPonyModel::new);
|
||||||
public static final ModelKey<ModelZombiePony<?>> ZOMBIE = register("zombie", ModelZombiePony::new);
|
public static final ModelKey<ZomponyModel<?>> ZOMBIE = register("zombie", ZomponyModel::new);
|
||||||
public static final ModelKey<ModelZombieVillagerPony> ZOMBIE_VILLAGER = register("zombie_villager", ModelZombieVillagerPony::new);
|
public static final ModelKey<ZomponyVillagerModel> ZOMBIE_VILLAGER = register("zombie_villager", ZomponyVillagerModel::new);
|
||||||
public static final ModelKey<ModelSkeletonPony<?>> SKELETON = register("skeleton", ModelSkeletonPony::new);
|
public static final ModelKey<SkeleponyModel<?>> SKELETON = register("skeleton", SkeleponyModel::new);
|
||||||
public static final ModelKey<ModelPillagerPony<?>> PILLAGER = register("pillager", ModelPillagerPony::new);
|
public static final ModelKey<PillagerPonyModel<?>> PILLAGER = register("pillager", PillagerPonyModel::new);
|
||||||
public static final ModelKey<ModelIllagerPony<?>> ILLAGER = register("illager", ModelIllagerPony::new);
|
public static final ModelKey<IllagerPonyModel<?>> ILLAGER = register("illager", IllagerPonyModel::new);
|
||||||
public static final ModelKey<ModelGuardianPony> GUARDIAN = register("guardian", ModelGuardianPony::new);
|
public static final ModelKey<GuardianPonyModel> GUARDIAN = register("guardian", GuardianPonyModel::new);
|
||||||
public static final ModelKey<ModelEnderStallion> ENDERMAN = register("enderman", ModelEnderStallion::new);
|
public static final ModelKey<EnderStallionModel> ENDERMAN = register("enderman", EnderStallionModel::new);
|
||||||
public static final ModelKey<ModelBreezie<VexEntity>> BREEZIE = register("breezie", ModelBreezie::new);
|
public static final ModelKey<BreezieModel<VexEntity>> BREEZIE = register("breezie", BreezieModel::new);
|
||||||
|
|
||||||
public static final ModelKey<PonyElytra<?>> ELYTRA = register("elytra", PonyElytra::new);
|
public static final ModelKey<PonyElytra<?>> ELYTRA = register("elytra", PonyElytra::new);
|
||||||
public static final ModelKey<ModelPonyHead> SKULL = register("skull", ModelPonyHead::new);
|
public static final ModelKey<PonySkullModel> SKULL = register("skull", PonySkullModel::new);
|
||||||
|
|
||||||
public static final ModelKey<ModelPonyArmour<?>> ARMOUR_INNER = register("armour_inner", ModelPonyArmour::new);
|
public static final ModelKey<PonyArmourModel<?>> ARMOUR_INNER = register("armour_inner", PonyArmourModel::new);
|
||||||
public static final ModelKey<ModelPonyArmour<?>> ARMOUR_OUTER = register("armour_outer", ModelPonyArmour::new);
|
public static final ModelKey<PonyArmourModel<?>> ARMOUR_OUTER = register("armour_outer", PonyArmourModel::new);
|
||||||
|
|
||||||
public static final ModelKey<Stetson> STETSON = registerGear("stetson", Wearable.STETSON, Stetson::new);
|
public static final ModelKey<Stetson> STETSON = registerGear("stetson", Wearable.STETSON, Stetson::new);
|
||||||
public static final ModelKey<SaddleBags> SADDLEBAGS = registerGear("saddlebags", Wearable.SADDLE_BAGS, SaddleBags::new);
|
public static final ModelKey<SaddleBags> SADDLEBAGS = registerGear("saddlebags", Wearable.SADDLE_BAGS, SaddleBags::new);
|
||||||
|
@ -72,18 +72,18 @@ public final class ModelType {
|
||||||
public static final ModelKey<WitchHat> WITCH_HAT = registerGear("witch_hat", Wearable.HAT, WitchHat::new);
|
public static final ModelKey<WitchHat> WITCH_HAT = registerGear("witch_hat", Wearable.HAT, WitchHat::new);
|
||||||
public static final ModelKey<ChristmasHat> ANTLERS = registerGear("antlers", Wearable.ANTLERS, ChristmasHat::new);
|
public static final ModelKey<ChristmasHat> ANTLERS = registerGear("antlers", Wearable.ANTLERS, ChristmasHat::new);
|
||||||
|
|
||||||
public static final PlayerModelKey<?, ModelAlicorn<?>> ALICORN = registerPlayer("alicorn", Race.ALICORN, ModelAlicorn::new);
|
public static final PlayerModelKey<?, AlicornModel<?>> ALICORN = registerPlayer("alicorn", Race.ALICORN, AlicornModel::new);
|
||||||
public static final PlayerModelKey<?, ModelUnicorn<?>> UNICORN = registerPlayer("unicorn", Race.UNICORN, ModelUnicorn::new);
|
public static final PlayerModelKey<?, UnicornModel<?>> UNICORN = registerPlayer("unicorn", Race.UNICORN, UnicornModel::new);
|
||||||
public static final PlayerModelKey<?, ModelUnicorn<?>> KIRIN = registerPlayer("kirin", Race.KIRIN, ModelUnicorn::new);
|
public static final PlayerModelKey<?, UnicornModel<?>> KIRIN = registerPlayer("kirin", Race.KIRIN, UnicornModel::new);
|
||||||
public static final PlayerModelKey<?, ModelPegasus<?>> PEGASUS = registerPlayer("pegasus", Race.PEGASUS, ModelPegasus::new);
|
public static final PlayerModelKey<?, PegasusModel<?>> PEGASUS = registerPlayer("pegasus", Race.PEGASUS, PegasusModel::new);
|
||||||
public static final PlayerModelKey<?, ModelPegasus<?>> GRYPHON = registerPlayer("gryphon", Race.GRYPHON, ModelPegasus::new);
|
public static final PlayerModelKey<?, PegasusModel<?>> GRYPHON = registerPlayer("gryphon", Race.GRYPHON, PegasusModel::new);
|
||||||
public static final PlayerModelKey<?, ModelPegasus<?>> HIPPOGRIFF = registerPlayer("hippogriff", Race.HIPPOGRIFF, ModelPegasus::new);
|
public static final PlayerModelKey<?, PegasusModel<?>> HIPPOGRIFF = registerPlayer("hippogriff", Race.HIPPOGRIFF, PegasusModel::new);
|
||||||
public static final PlayerModelKey<?, ModelEarthPony<?>> EARTH_PONY = registerPlayer("earth_pony", Race.EARTH, ModelEarthPony::new);
|
public static final PlayerModelKey<?, EarthPonyModel<?>> EARTH_PONY = registerPlayer("earth_pony", Race.EARTH, EarthPonyModel::new);
|
||||||
public static final PlayerModelKey<?, ModelEarthPony<?>> SEA_PONY = registerPlayer("sea_pony", Race.SEAPONY, ModelEarthPony::new, PlayerSeaponyRenderer::new);
|
public static final PlayerModelKey<?, EarthPonyModel<?>> SEA_PONY = registerPlayer("sea_pony", Race.SEAPONY, EarthPonyModel::new, PlayerSeaponyRenderer::new);
|
||||||
public static final PlayerModelKey<?, ModelPegasus<?>> BAT_PONY = registerPlayer("bat_pony", Race.BATPONY, ModelPegasus::new);
|
public static final PlayerModelKey<?, PegasusModel<?>> BAT_PONY = registerPlayer("bat_pony", Race.BATPONY, PegasusModel::new);
|
||||||
public static final PlayerModelKey<?, ModelChangeling<?>> CHANGELING = registerPlayer("changeling", Race.CHANGELING, ModelChangeling::new);
|
public static final PlayerModelKey<?, ChangelingModel<?>> CHANGELING = registerPlayer("changeling", Race.CHANGELING, ChangelingModel::new);
|
||||||
public static final PlayerModelKey<?, ModelChangeling<?>> CHANGEDLING = registerPlayer("reformed_changeling", Race.CHANGEDLING, ModelChangeling::new);
|
public static final PlayerModelKey<?, ChangelingModel<?>> CHANGEDLING = registerPlayer("reformed_changeling", Race.CHANGEDLING, ChangelingModel::new);
|
||||||
public static final PlayerModelKey<?, ModelZebra<?>> ZEBRA = registerPlayer("zebra", Race.ZEBRA, ModelZebra::new);
|
public static final PlayerModelKey<?, ZebraModel<?>> ZEBRA = registerPlayer("zebra", Race.ZEBRA, ZebraModel::new);
|
||||||
|
|
||||||
static <E extends LivingEntity, T extends Model & MsonModel> PlayerModelKey<E, T> registerPlayer(String name, Race race, Function<Boolean, T> constructor) {
|
static <E extends LivingEntity, T extends Model & MsonModel> PlayerModelKey<E, T> registerPlayer(String name, Race race, Function<Boolean, T> constructor) {
|
||||||
return registerPlayer(name, race, constructor, PlayerPonyRenderer::new);
|
return registerPlayer(name, race, constructor, PlayerPonyRenderer::new);
|
||||||
|
|
|
@ -13,7 +13,7 @@ import net.minecraft.client.render.VertexConsumer;
|
||||||
import net.minecraft.client.render.entity.model.SkullOverlayEntityModel;
|
import net.minecraft.client.render.entity.model.SkullOverlayEntityModel;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
|
|
||||||
public class ModelPonyHead extends SkullOverlayEntityModel implements MsonModel, ICapitated<ModelPart> {
|
public class PonySkullModel extends SkullOverlayEntityModel implements MsonModel, ICapitated<ModelPart> {
|
||||||
|
|
||||||
private PonySnout snout;
|
private PonySnout snout;
|
||||||
|
|
|
@ -9,12 +9,12 @@ import com.minelittlepony.pony.IPonyData;
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
public class ArmourWrapper<T extends LivingEntity> implements IEquestrianArmour<ModelPonyArmour<T>> {
|
public class ArmourWrapper<T extends LivingEntity> implements IEquestrianArmour<PonyArmourModel<T>> {
|
||||||
|
|
||||||
private final ModelPonyArmour<T> outerLayer;
|
private final PonyArmourModel<T> outerLayer;
|
||||||
private final ModelPonyArmour<T> innerLayer;
|
private final PonyArmourModel<T> innerLayer;
|
||||||
|
|
||||||
public ArmourWrapper(Supplier<ModelPonyArmour<T>> supplier) {
|
public ArmourWrapper(Supplier<PonyArmourModel<T>> supplier) {
|
||||||
outerLayer = ModelType.ARMOUR_INNER.createModel(supplier);
|
outerLayer = ModelType.ARMOUR_INNER.createModel(supplier);
|
||||||
innerLayer = ModelType.ARMOUR_OUTER.createModel(supplier);
|
innerLayer = ModelType.ARMOUR_OUTER.createModel(supplier);
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ public class ArmourWrapper<T extends LivingEntity> implements IEquestrianArmour<
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ModelPonyArmour<T> getArmorForLayer(ArmourLayer layer) {
|
public PonyArmourModel<T> getArmorForLayer(ArmourLayer layer) {
|
||||||
|
|
||||||
if (layer == ArmourLayer.INNER) {
|
if (layer == ArmourLayer.INNER) {
|
||||||
return innerLayer;
|
return innerLayer;
|
||||||
|
|
|
@ -12,7 +12,7 @@ import com.minelittlepony.model.armour.ArmourVariant;
|
||||||
import com.minelittlepony.model.armour.IArmour;
|
import com.minelittlepony.model.armour.IArmour;
|
||||||
import com.minelittlepony.mson.api.ModelContext;
|
import com.minelittlepony.mson.api.ModelContext;
|
||||||
|
|
||||||
public class ModelPonyArmour<T extends LivingEntity> extends AbstractPonyModel<T> implements IArmour {
|
public class PonyArmourModel<T extends LivingEntity> extends AbstractPonyModel<T> implements IArmour {
|
||||||
|
|
||||||
private ModelPart chestPiece;
|
private ModelPart chestPiece;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ public class ModelPonyArmour<T extends LivingEntity> extends AbstractPonyModel<T
|
||||||
|
|
||||||
private ArmourVariant variant = ArmourVariant.NORMAL;
|
private ArmourVariant variant = ArmourVariant.NORMAL;
|
||||||
|
|
||||||
public ModelPonyArmour() {
|
public PonyArmourModel() {
|
||||||
textureHeight = 32;
|
textureHeight = 32;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,14 +14,14 @@ import com.minelittlepony.mson.api.model.biped.MsonBiped;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.PI;
|
import static com.minelittlepony.model.PonyModelConstants.PI;
|
||||||
|
|
||||||
public class ModelBreezie<T extends LivingEntity> extends MsonBiped<T> implements MsonModel {
|
public class BreezieModel<T extends LivingEntity> extends MsonBiped<T> implements MsonModel {
|
||||||
|
|
||||||
private ModelPart neck;
|
private ModelPart neck;
|
||||||
|
|
||||||
private ModelPart leftWing;
|
private ModelPart leftWing;
|
||||||
private ModelPart rightWing;
|
private ModelPart rightWing;
|
||||||
|
|
||||||
public ModelBreezie() {
|
public BreezieModel() {
|
||||||
textureHeight = 64;
|
textureHeight = 64;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import com.minelittlepony.mson.api.ModelContext;
|
import com.minelittlepony.mson.api.ModelContext;
|
||||||
|
|
||||||
public class ModelEnderStallion extends ModelSkeletonPony<EndermanEntity> {
|
public class EnderStallionModel extends SkeleponyModel<EndermanEntity> {
|
||||||
|
|
||||||
public boolean isCarrying;
|
public boolean isCarrying;
|
||||||
public boolean isAttacking;
|
public boolean isAttacking;
|
||||||
|
@ -19,7 +19,7 @@ public class ModelEnderStallion extends ModelSkeletonPony<EndermanEntity> {
|
||||||
private ModelPart leftHorn;
|
private ModelPart leftHorn;
|
||||||
private ModelPart rightHorn;
|
private ModelPart rightHorn;
|
||||||
|
|
||||||
public ModelEnderStallion() {
|
public EnderStallionModel() {
|
||||||
super();
|
super();
|
||||||
attributes.visualHeight = 3;
|
attributes.visualHeight = 3;
|
||||||
}
|
}
|
|
@ -8,9 +8,10 @@ import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.mob.GuardianEntity;
|
import net.minecraft.entity.mob.GuardianEntity;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.IPonyMixinModel;
|
import com.minelittlepony.client.model.IPonyMixinModel;
|
||||||
|
import com.minelittlepony.client.model.entity.race.SeaponyModel;
|
||||||
|
|
||||||
public class ModelGuardianPony extends GuardianEntityModel implements IPonyMixinModel.Caster<GuardianEntity, ModelSeapony<GuardianEntity>, ModelPart> {
|
public class GuardianPonyModel extends GuardianEntityModel implements IPonyMixinModel.Caster<GuardianEntity, SeaponyModel<GuardianEntity>, ModelPart> {
|
||||||
private final ModelSeapony<GuardianEntity> mixin = new ModelSeapony<>();
|
private final SeaponyModel<GuardianEntity> mixin = new SeaponyModel<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setAngles(GuardianEntity entity, float move, float swing, float ticks, float headYaw, float headPitch) {
|
public void setAngles(GuardianEntity entity, float move, float swing, float ticks, float headYaw, float headPitch) {
|
||||||
|
@ -33,7 +34,7 @@ public class ModelGuardianPony extends GuardianEntityModel implements IPonyMixin
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ModelSeapony<GuardianEntity> mixin() {
|
public SeaponyModel<GuardianEntity> mixin() {
|
||||||
return mixin;
|
return mixin;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,11 +5,11 @@ import net.minecraft.entity.mob.IllagerEntity;
|
||||||
import net.minecraft.util.Arm;
|
import net.minecraft.util.Arm;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
|
|
||||||
public class ModelIllagerPony<T extends IllagerEntity> extends ModelAlicorn<T> {
|
public class IllagerPonyModel<T extends IllagerEntity> extends AlicornModel<T> {
|
||||||
|
|
||||||
public ModelIllagerPony() {
|
public IllagerPonyModel() {
|
||||||
super(false);
|
super(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,11 +4,11 @@ import net.minecraft.entity.mob.IllagerEntity;
|
||||||
import net.minecraft.entity.mob.PillagerEntity;
|
import net.minecraft.entity.mob.PillagerEntity;
|
||||||
import net.minecraft.util.Arm;
|
import net.minecraft.util.Arm;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.entity.race.ModelChangeling;
|
import com.minelittlepony.client.model.entity.race.ChangelingModel;
|
||||||
|
|
||||||
public class ModelPillagerPony<T extends PillagerEntity> extends ModelChangeling<T> {
|
public class PillagerPonyModel<T extends PillagerEntity> extends ChangelingModel<T> {
|
||||||
|
|
||||||
public ModelPillagerPony() {
|
public PillagerPonyModel() {
|
||||||
super(false);
|
super(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,15 +10,15 @@ import net.minecraft.util.Arm;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.IMobModel;
|
import com.minelittlepony.client.model.IMobModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
|
|
||||||
public class ModelSkeletonPony<T extends HostileEntity> extends ModelAlicorn<T> implements IMobModel {
|
public class SkeleponyModel<T extends HostileEntity> extends AlicornModel<T> implements IMobModel {
|
||||||
|
|
||||||
public boolean isUnicorn;
|
public boolean isUnicorn;
|
||||||
|
|
||||||
public boolean isWithered;
|
public boolean isWithered;
|
||||||
|
|
||||||
public ModelSkeletonPony() {
|
public SkeleponyModel() {
|
||||||
super(false);
|
super(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,20 +10,20 @@ import net.minecraft.util.math.MathHelper;
|
||||||
import net.minecraft.village.VillagerDataContainer;
|
import net.minecraft.village.VillagerDataContainer;
|
||||||
import net.minecraft.village.VillagerProfession;
|
import net.minecraft.village.VillagerProfession;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
import com.minelittlepony.client.render.entity.npc.PonyTextures;
|
import com.minelittlepony.client.render.entity.npc.PonyTextures;
|
||||||
import com.minelittlepony.model.IPart;
|
import com.minelittlepony.model.IPart;
|
||||||
import com.minelittlepony.mson.api.ModelContext;
|
import com.minelittlepony.mson.api.ModelContext;
|
||||||
import com.minelittlepony.pony.meta.Race;
|
import com.minelittlepony.pony.meta.Race;
|
||||||
|
|
||||||
public class ModelVillagerPony<T extends LivingEntity & VillagerDataContainer> extends ModelAlicorn<T> implements ModelWithHat {
|
public class VillagerPonyModel<T extends LivingEntity & VillagerDataContainer> extends AlicornModel<T> implements ModelWithHat {
|
||||||
|
|
||||||
private ModelPart apron;
|
private ModelPart apron;
|
||||||
private ModelPart trinket;
|
private ModelPart trinket;
|
||||||
|
|
||||||
private IPart batWings;
|
private IPart batWings;
|
||||||
|
|
||||||
public ModelVillagerPony() {
|
public VillagerPonyModel() {
|
||||||
super(false);
|
super(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,14 +3,14 @@ package com.minelittlepony.client.model.entity;
|
||||||
import net.minecraft.entity.mob.WitchEntity;
|
import net.minecraft.entity.mob.WitchEntity;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.entity.race.ModelZebra;
|
import com.minelittlepony.client.model.entity.race.ZebraModel;
|
||||||
import com.minelittlepony.client.render.EquineRenderManager;
|
import com.minelittlepony.client.render.EquineRenderManager;
|
||||||
import com.minelittlepony.pony.IPony;
|
import com.minelittlepony.pony.IPony;
|
||||||
import com.minelittlepony.pony.meta.Wearable;
|
import com.minelittlepony.pony.meta.Wearable;
|
||||||
|
|
||||||
public class ModelWitchPony extends ModelZebra<WitchEntity> {
|
public class WitchPonyModel extends ZebraModel<WitchEntity> {
|
||||||
|
|
||||||
public ModelWitchPony() {
|
public WitchPonyModel() {
|
||||||
super(false);
|
super(false);
|
||||||
attributes.visualHeight = 2.5F;
|
attributes.visualHeight = 2.5F;
|
||||||
}
|
}
|
|
@ -1,17 +1,17 @@
|
||||||
package com.minelittlepony.client.model.entity;
|
package com.minelittlepony.client.model.entity;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.IMobModel;
|
import com.minelittlepony.client.model.IMobModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
import com.minelittlepony.mson.api.model.MsonPart;
|
import com.minelittlepony.mson.api.model.MsonPart;
|
||||||
|
|
||||||
import net.minecraft.entity.mob.HostileEntity;
|
import net.minecraft.entity.mob.HostileEntity;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
public class ModelZombiePony<Zombie extends HostileEntity> extends ModelAlicorn<Zombie> implements IMobModel {
|
public class ZomponyModel<Zombie extends HostileEntity> extends AlicornModel<Zombie> implements IMobModel {
|
||||||
|
|
||||||
private boolean isPegasus;
|
private boolean isPegasus;
|
||||||
|
|
||||||
public ModelZombiePony() {
|
public ZomponyModel() {
|
||||||
super(false);
|
super(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ import net.minecraft.util.math.MathHelper;
|
||||||
import com.minelittlepony.client.model.IMobModel;
|
import com.minelittlepony.client.model.IMobModel;
|
||||||
import com.minelittlepony.mson.api.model.MsonPart;
|
import com.minelittlepony.mson.api.model.MsonPart;
|
||||||
|
|
||||||
public class ModelZombieVillagerPony extends ModelVillagerPony<ZombieVillagerEntity> implements IMobModel {
|
public class ZomponyVillagerModel extends VillagerPonyModel<ZombieVillagerEntity> implements IMobModel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void rotateLegs(float move, float swing, float ticks, ZombieVillagerEntity entity) {
|
protected void rotateLegs(float move, float swing, float ticks, ZombieVillagerEntity entity) {
|
|
@ -8,11 +8,11 @@ import net.minecraft.client.render.VertexConsumer;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
|
|
||||||
public class ModelAlicorn<T extends LivingEntity> extends ModelUnicorn<T> implements IPegasus {
|
public class AlicornModel<T extends LivingEntity> extends UnicornModel<T> implements IPegasus {
|
||||||
|
|
||||||
private IPart wings;
|
private IPart wings;
|
||||||
|
|
||||||
public ModelAlicorn(boolean smallArms) {
|
public AlicornModel(boolean smallArms) {
|
||||||
super(smallArms);
|
super(smallArms);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,9 @@ package com.minelittlepony.client.model.entity.race;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
public class ModelChangeling<T extends LivingEntity> extends ModelAlicorn<T> {
|
public class ChangelingModel<T extends LivingEntity> extends AlicornModel<T> {
|
||||||
|
|
||||||
public ModelChangeling(boolean smallArms) {
|
public ChangelingModel(boolean smallArms) {
|
||||||
super(smallArms);
|
super(smallArms);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ import net.minecraft.client.render.VertexConsumer;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
|
|
||||||
public class ModelEarthPony<T extends LivingEntity> extends AbstractPonyModel<T> {
|
public class EarthPonyModel<T extends LivingEntity> extends AbstractPonyModel<T> {
|
||||||
|
|
||||||
private final boolean smallArms;
|
private final boolean smallArms;
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ public class ModelEarthPony<T extends LivingEntity> extends AbstractPonyModel<T>
|
||||||
protected PonySnout snout;
|
protected PonySnout snout;
|
||||||
protected IPart ears;
|
protected IPart ears;
|
||||||
|
|
||||||
public ModelEarthPony(boolean smallArms) {
|
public EarthPonyModel(boolean smallArms) {
|
||||||
this.smallArms = smallArms;
|
this.smallArms = smallArms;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,11 +8,11 @@ import net.minecraft.client.render.VertexConsumer;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
|
|
||||||
public class ModelPegasus<T extends LivingEntity> extends ModelEarthPony<T> implements IPegasus {
|
public class PegasusModel<T extends LivingEntity> extends EarthPonyModel<T> implements IPegasus {
|
||||||
|
|
||||||
private IPart wings;
|
private IPart wings;
|
||||||
|
|
||||||
public ModelPegasus(boolean smallArms) {
|
public PegasusModel(boolean smallArms) {
|
||||||
super(smallArms);
|
super(smallArms);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.minelittlepony.client.model.entity;
|
package com.minelittlepony.client.model.entity.race;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.armour.ModelPonyArmour;
|
import com.minelittlepony.client.model.armour.PonyArmourModel;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelUnicorn;
|
|
||||||
import com.minelittlepony.client.render.EquineRenderManager;
|
import com.minelittlepony.client.render.EquineRenderManager;
|
||||||
import com.minelittlepony.client.model.armour.ArmourWrapper;
|
import com.minelittlepony.client.model.armour.ArmourWrapper;
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
|
@ -15,7 +14,7 @@ import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
public class ModelSeapony<T extends LivingEntity> extends ModelUnicorn<T> {
|
public class SeaponyModel<T extends LivingEntity> extends UnicornModel<T> {
|
||||||
|
|
||||||
private ModelPart bodyCenter;
|
private ModelPart bodyCenter;
|
||||||
|
|
||||||
|
@ -23,12 +22,12 @@ public class ModelSeapony<T extends LivingEntity> extends ModelUnicorn<T> {
|
||||||
private ModelPart centerFin;
|
private ModelPart centerFin;
|
||||||
private ModelPart rightFin;
|
private ModelPart rightFin;
|
||||||
|
|
||||||
public ModelSeapony(boolean smallArms) {
|
public SeaponyModel(boolean smallArms) {
|
||||||
super(smallArms);
|
super(smallArms);
|
||||||
textureHeight = 64;
|
textureHeight = 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelSeapony() {
|
public SeaponyModel() {
|
||||||
this(false);
|
this(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +153,7 @@ public class ModelSeapony<T extends LivingEntity> extends ModelUnicorn<T> {
|
||||||
rightFin.visible = visible;
|
rightFin.visible = visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Armour extends ModelPonyArmour<T> {
|
class Armour extends PonyArmourModel<T> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void showBoots() {
|
public void showBoots() {
|
|
@ -16,14 +16,14 @@ import net.minecraft.util.math.MathHelper;
|
||||||
/**
|
/**
|
||||||
* Used for both unicorns and alicorns since there's no logical way to keep them distinct and not duplicate stuff.
|
* Used for both unicorns and alicorns since there's no logical way to keep them distinct and not duplicate stuff.
|
||||||
*/
|
*/
|
||||||
public class ModelUnicorn<T extends LivingEntity> extends ModelEarthPony<T> implements IUnicorn<ModelPart> {
|
public class UnicornModel<T extends LivingEntity> extends EarthPonyModel<T> implements IUnicorn<ModelPart> {
|
||||||
|
|
||||||
protected ModelPart unicornArmRight;
|
protected ModelPart unicornArmRight;
|
||||||
protected ModelPart unicornArmLeft;
|
protected ModelPart unicornArmLeft;
|
||||||
|
|
||||||
protected UnicornHorn horn;
|
protected UnicornHorn horn;
|
||||||
|
|
||||||
public ModelUnicorn(boolean smallArms) {
|
public UnicornModel(boolean smallArms) {
|
||||||
super(smallArms);
|
super(smallArms);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,14 +3,14 @@ package com.minelittlepony.client.model.entity.race;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.armour.ModelPonyArmour;
|
import com.minelittlepony.client.model.armour.PonyArmourModel;
|
||||||
import com.minelittlepony.client.model.armour.ArmourWrapper;
|
import com.minelittlepony.client.model.armour.ArmourWrapper;
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
import com.minelittlepony.model.armour.IEquestrianArmour;
|
import com.minelittlepony.model.armour.IEquestrianArmour;
|
||||||
|
|
||||||
public class ModelZebra<T extends LivingEntity> extends ModelEarthPony<T> {
|
public class ZebraModel<T extends LivingEntity> extends EarthPonyModel<T> {
|
||||||
|
|
||||||
public ModelZebra(boolean useSmallArms) {
|
public ZebraModel(boolean useSmallArms) {
|
||||||
super(useSmallArms);
|
super(useSmallArms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ public class ModelZebra<T extends LivingEntity> extends ModelEarthPony<T> {
|
||||||
super.transform(part, stack);
|
super.transform(part, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
class Armour extends ModelPonyArmour<T> {
|
class Armour extends PonyArmourModel<T> {
|
||||||
@Override
|
@Override
|
||||||
public void transform(BodyPart part, MatrixStack stack) {
|
public void transform(BodyPart part, MatrixStack stack) {
|
||||||
applyLongNeck(part, stack);
|
applyLongNeck(part, stack);
|
|
@ -3,14 +3,14 @@ package com.minelittlepony.client.render.blockentity.skull;
|
||||||
import net.minecraft.client.render.VertexConsumer;
|
import net.minecraft.client.render.VertexConsumer;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelPonyHead;
|
import com.minelittlepony.client.model.PonySkullModel;
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.render.blockentity.skull.PonySkullRenderer.ISkull;
|
import com.minelittlepony.client.render.blockentity.skull.PonySkullRenderer.ISkull;
|
||||||
import com.minelittlepony.pony.IPony;
|
import com.minelittlepony.pony.IPony;
|
||||||
|
|
||||||
public abstract class AbstractPonySkull implements ISkull {
|
public abstract class AbstractPonySkull implements ISkull {
|
||||||
|
|
||||||
private ModelPonyHead ponyHead = ModelType.SKULL.createModel();
|
private PonySkullModel ponyHead = ModelType.SKULL.createModel();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setAngles(float angle, float poweredTicks) {
|
public void setAngles(float angle, float poweredTicks) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony.client.render.blockentity.skull;
|
package com.minelittlepony.client.render.blockentity.skull;
|
||||||
|
|
||||||
import com.minelittlepony.client.SkinsProxy;
|
import com.minelittlepony.client.SkinsProxy;
|
||||||
import com.minelittlepony.client.model.ModelDeadMau5Ears;
|
import com.minelittlepony.client.model.DJPon3EarsModel;
|
||||||
import com.minelittlepony.settings.PonyConfig;
|
import com.minelittlepony.settings.PonyConfig;
|
||||||
import com.minelittlepony.settings.PonyLevel;
|
import com.minelittlepony.settings.PonyLevel;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
|
@ -16,7 +16,7 @@ import javax.annotation.Nullable;
|
||||||
|
|
||||||
public class PonySkull extends AbstractPonySkull {
|
public class PonySkull extends AbstractPonySkull {
|
||||||
|
|
||||||
private final ModelDeadMau5Ears deadMau5 = new ModelDeadMau5Ears();
|
private final DJPon3EarsModel deadMau5 = new DJPon3EarsModel();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canRender(PonyConfig config) {
|
public boolean canRender(PonyConfig config) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony.client.render.entity;
|
package com.minelittlepony.client.render.entity;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelEnderStallion;
|
import com.minelittlepony.client.model.entity.EnderStallionModel;
|
||||||
import com.minelittlepony.client.render.entity.feature.GlowingEyesFeature;
|
import com.minelittlepony.client.render.entity.feature.GlowingEyesFeature;
|
||||||
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
||||||
import com.minelittlepony.client.render.entity.feature.GlowingItemFeature;
|
import com.minelittlepony.client.render.entity.feature.GlowingItemFeature;
|
||||||
|
@ -18,7 +18,7 @@ import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class EnderStallionRenderer extends PonyRenderer<EndermanEntity, ModelEnderStallion> implements IGlowingRenderer {
|
public class EnderStallionRenderer extends PonyRenderer<EndermanEntity, EnderStallionModel> implements IGlowingRenderer {
|
||||||
|
|
||||||
public static final Identifier ENDERMAN = new Identifier("minelittlepony", "textures/entity/enderman/enderman_pony.png");
|
public static final Identifier ENDERMAN = new Identifier("minelittlepony", "textures/entity/enderman/enderman_pony.png");
|
||||||
private static final Identifier EYES = new Identifier("minelittlepony", "textures/entity/enderman/enderman_pony_eyes.png");
|
private static final Identifier EYES = new Identifier("minelittlepony", "textures/entity/enderman/enderman_pony_eyes.png");
|
||||||
|
@ -37,8 +37,8 @@ public class EnderStallionRenderer extends PonyRenderer<EndermanEntity, ModelEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected HeldItemFeature<EndermanEntity, ModelEnderStallion> createItemHoldingLayer() {
|
protected HeldItemFeature<EndermanEntity, EnderStallionModel> createItemHoldingLayer() {
|
||||||
return new GlowingItemFeature<EndermanEntity, ModelEnderStallion>(this) {
|
return new GlowingItemFeature<EndermanEntity, EnderStallionModel>(this) {
|
||||||
@Override
|
@Override
|
||||||
protected ItemStack getRightItem(EndermanEntity entity) {
|
protected ItemStack getRightItem(EndermanEntity entity) {
|
||||||
BlockState state = entity.getCarriedBlock();
|
BlockState state = entity.getCarriedBlock();
|
||||||
|
@ -58,7 +58,7 @@ public class EnderStallionRenderer extends PonyRenderer<EndermanEntity, ModelEnd
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(EndermanEntity entity, float entityYaw, float tickDelta, MatrixStack stack, VertexConsumerProvider renderContext, int lightUv) {
|
public void render(EndermanEntity entity, float entityYaw, float tickDelta, MatrixStack stack, VertexConsumerProvider renderContext, int lightUv) {
|
||||||
ModelEnderStallion modelenderman = getModel();
|
EnderStallionModel modelenderman = getModel();
|
||||||
|
|
||||||
modelenderman.isCarrying = entity.getCarriedBlock() != null;
|
modelenderman.isCarrying = entity.getCarriedBlock() != null;
|
||||||
modelenderman.isAttacking = entity.isAngry();
|
modelenderman.isAttacking = entity.isAngry();
|
||||||
|
|
|
@ -4,7 +4,7 @@ import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import com.minelittlepony.client.mixin.IResizeable;
|
import com.minelittlepony.client.mixin.IResizeable;
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelGuardianPony;
|
import com.minelittlepony.client.model.entity.GuardianPonyModel;
|
||||||
import com.minelittlepony.client.render.entity.PonyRenderer.Proxy;
|
import com.minelittlepony.client.render.entity.PonyRenderer.Proxy;
|
||||||
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
||||||
import com.minelittlepony.client.render.entity.feature.GlowingItemFeature;
|
import com.minelittlepony.client.render.entity.feature.GlowingItemFeature;
|
||||||
|
@ -23,20 +23,20 @@ public class SeaponyRenderer extends GuardianEntityRenderer {
|
||||||
|
|
||||||
public static final Identifier SEAPONY = new Identifier("minelittlepony", "textures/entity/seapony.png");
|
public static final Identifier SEAPONY = new Identifier("minelittlepony", "textures/entity/seapony.png");
|
||||||
|
|
||||||
private final Proxy<GuardianEntity, ModelGuardianPony> ponyRenderer;
|
private final Proxy<GuardianEntity, GuardianPonyModel> ponyRenderer;
|
||||||
|
|
||||||
public SeaponyRenderer(EntityRenderDispatcher manager) {
|
public SeaponyRenderer(EntityRenderDispatcher manager) {
|
||||||
super(manager);
|
super(manager);
|
||||||
|
|
||||||
features.clear();
|
features.clear();
|
||||||
ponyRenderer = new Proxy<GuardianEntity, ModelGuardianPony>(features, manager, ModelType.GUARDIAN) {
|
ponyRenderer = new Proxy<GuardianEntity, GuardianPonyModel>(features, manager, ModelType.GUARDIAN) {
|
||||||
@Override
|
@Override
|
||||||
public Identifier findTexture(GuardianEntity entity) {
|
public Identifier findTexture(GuardianEntity entity) {
|
||||||
return SEAPONY;
|
return SEAPONY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected HeldItemFeature<GuardianEntity, ModelGuardianPony> createItemHoldingLayer() {
|
protected HeldItemFeature<GuardianEntity, GuardianPonyModel> createItemHoldingLayer() {
|
||||||
return new GlowingItemFeature<>(this);
|
return new GlowingItemFeature<>(this);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony.client.render.entity;
|
package com.minelittlepony.client.render.entity;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelSkeletonPony;
|
import com.minelittlepony.client.model.entity.SkeleponyModel;
|
||||||
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
||||||
import com.minelittlepony.client.render.entity.feature.GlowingItemFeature;
|
import com.minelittlepony.client.render.entity.feature.GlowingItemFeature;
|
||||||
import com.minelittlepony.client.render.entity.feature.StrayClothingFeature;
|
import com.minelittlepony.client.render.entity.feature.StrayClothingFeature;
|
||||||
|
@ -13,7 +13,7 @@ import net.minecraft.entity.mob.StrayEntity;
|
||||||
import net.minecraft.entity.mob.WitherSkeletonEntity;
|
import net.minecraft.entity.mob.WitherSkeletonEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
public class SkeleponyRenderer<Skeleton extends AbstractSkeletonEntity> extends PonyRenderer<Skeleton, ModelSkeletonPony<Skeleton>> {
|
public class SkeleponyRenderer<Skeleton extends AbstractSkeletonEntity> extends PonyRenderer<Skeleton, SkeleponyModel<Skeleton>> {
|
||||||
|
|
||||||
public static final Identifier SKELETON = new Identifier("minelittlepony", "textures/entity/skeleton/skeleton_pony.png");
|
public static final Identifier SKELETON = new Identifier("minelittlepony", "textures/entity/skeleton/skeleton_pony.png");
|
||||||
public static final Identifier WITHER = new Identifier("minelittlepony", "textures/entity/skeleton/skeleton_wither_pony.png");
|
public static final Identifier WITHER = new Identifier("minelittlepony", "textures/entity/skeleton/skeleton_wither_pony.png");
|
||||||
|
@ -29,7 +29,7 @@ public class SkeleponyRenderer<Skeleton extends AbstractSkeletonEntity> extends
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected HeldItemFeature<Skeleton, ModelSkeletonPony<Skeleton>> createItemHoldingLayer() {
|
protected HeldItemFeature<Skeleton, SkeleponyModel<Skeleton>> createItemHoldingLayer() {
|
||||||
return new GlowingItemFeature<>(this);
|
return new GlowingItemFeature<>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,12 @@ import net.minecraft.entity.mob.VexEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelBreezie;
|
import com.minelittlepony.client.model.entity.BreezieModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AKA a breezie :D
|
* AKA a breezie :D
|
||||||
*/
|
*/
|
||||||
public class VexRenderer extends BipedEntityRenderer<VexEntity, ModelBreezie<VexEntity>> {
|
public class VexRenderer extends BipedEntityRenderer<VexEntity, BreezieModel<VexEntity>> {
|
||||||
|
|
||||||
private static final Identifier VEX = new Identifier("minelittlepony", "textures/entity/illager/vex_pony.png");
|
private static final Identifier VEX = new Identifier("minelittlepony", "textures/entity/illager/vex_pony.png");
|
||||||
private static final Identifier VEX_CHARGING = new Identifier("minelittlepony", "textures/entity/illager/vex_charging_pony.png");
|
private static final Identifier VEX_CHARGING = new Identifier("minelittlepony", "textures/entity/illager/vex_charging_pony.png");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony.client.render.entity;
|
package com.minelittlepony.client.render.entity;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelWitchPony;
|
import com.minelittlepony.client.model.entity.WitchPonyModel;
|
||||||
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
||||||
|
|
||||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||||
|
@ -13,7 +13,7 @@ import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.Arm;
|
import net.minecraft.util.Arm;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
public class WitchRenderer extends PonyRenderer<WitchEntity, ModelWitchPony> {
|
public class WitchRenderer extends PonyRenderer<WitchEntity, WitchPonyModel> {
|
||||||
|
|
||||||
private static final Identifier WITCH_TEXTURES = new Identifier("minelittlepony", "textures/entity/witch_pony.png");
|
private static final Identifier WITCH_TEXTURES = new Identifier("minelittlepony", "textures/entity/witch_pony.png");
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ public class WitchRenderer extends PonyRenderer<WitchEntity, ModelWitchPony> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected HeldItemFeature<WitchEntity, ModelWitchPony> createItemHoldingLayer() {
|
protected HeldItemFeature<WitchEntity, WitchPonyModel> createItemHoldingLayer() {
|
||||||
return new HeldItemFeature<WitchEntity, ModelWitchPony>(this) {
|
return new HeldItemFeature<WitchEntity, WitchPonyModel>(this) {
|
||||||
@Override
|
@Override
|
||||||
protected void preItemRender(WitchEntity entity, ItemStack drop, ModelTransformation.Type transform, Arm hand, MatrixStack stack) {
|
protected void preItemRender(WitchEntity entity, ItemStack drop, ModelTransformation.Type transform, Arm hand, MatrixStack stack) {
|
||||||
stack.translate(0, -0.3F, -0.8F);
|
stack.translate(0, -0.3F, -0.8F);
|
||||||
|
|
|
@ -10,9 +10,9 @@ import net.minecraft.entity.mob.ZombiePigmanEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelZombiePony;
|
import com.minelittlepony.client.model.entity.ZomponyModel;
|
||||||
|
|
||||||
public class ZomponyRenderer<Zombie extends ZombieEntity> extends PonyRenderer.Caster<Zombie, ModelZombiePony<Zombie>> {
|
public class ZomponyRenderer<Zombie extends ZombieEntity> extends PonyRenderer.Caster<Zombie, ZomponyModel<Zombie>> {
|
||||||
|
|
||||||
public static final Identifier ZOMBIE = new Identifier("minelittlepony", "textures/entity/zombie/zombie_pony.png");
|
public static final Identifier ZOMBIE = new Identifier("minelittlepony", "textures/entity/zombie/zombie_pony.png");
|
||||||
public static final Identifier HUSK = new Identifier("minelittlepony", "textures/entity/zombie/husk_pony.png");
|
public static final Identifier HUSK = new Identifier("minelittlepony", "textures/entity/zombie/husk_pony.png");
|
||||||
|
@ -71,7 +71,7 @@ public class ZomponyRenderer<Zombie extends ZombieEntity> extends PonyRenderer.C
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Giant extends PonyRenderer.Caster<GiantEntity, ModelZombiePony<GiantEntity>> {
|
public static class Giant extends PonyRenderer.Caster<GiantEntity, ZomponyModel<GiantEntity>> {
|
||||||
|
|
||||||
public Giant(EntityRenderDispatcher manager) {
|
public Giant(EntityRenderDispatcher manager) {
|
||||||
super(manager, ModelType.ZOMBIE);
|
super(manager, ModelType.ZOMBIE);
|
||||||
|
|
|
@ -8,13 +8,13 @@ import net.minecraft.client.render.entity.model.EntityModel;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.IPonyModel;
|
import com.minelittlepony.client.model.IPonyModel;
|
||||||
import com.minelittlepony.client.model.ModelDeadMau5Ears;
|
import com.minelittlepony.client.model.DJPon3EarsModel;
|
||||||
import com.minelittlepony.client.render.IPonyRenderContext;
|
import com.minelittlepony.client.render.IPonyRenderContext;
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
|
|
||||||
public class DJPon3Feature<T extends AbstractClientPlayerEntity, M extends EntityModel<T> & IPonyModel<T>> extends AbstractPonyFeature<T, M> {
|
public class DJPon3Feature<T extends AbstractClientPlayerEntity, M extends EntityModel<T> & IPonyModel<T>> extends AbstractPonyFeature<T, M> {
|
||||||
|
|
||||||
private final ModelDeadMau5Ears deadMau5 = new ModelDeadMau5Ears();
|
private final DJPon3EarsModel deadMau5 = new DJPon3EarsModel();
|
||||||
|
|
||||||
public DJPon3Feature(IPonyRenderContext<T, M> context) {
|
public DJPon3Feature(IPonyRenderContext<T, M> context) {
|
||||||
super(context);
|
super(context);
|
||||||
|
|
|
@ -5,10 +5,10 @@ import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.mob.IllagerEntity;
|
import net.minecraft.entity.mob.IllagerEntity;
|
||||||
import net.minecraft.util.Arm;
|
import net.minecraft.util.Arm;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
import com.minelittlepony.client.render.IPonyRenderContext;
|
import com.minelittlepony.client.render.IPonyRenderContext;
|
||||||
|
|
||||||
public class IllagerHeldItemFeature<T extends IllagerEntity, M extends ModelAlicorn<T>> extends HeldItemFeature<T, M> {
|
public class IllagerHeldItemFeature<T extends IllagerEntity, M extends AlicornModel<T>> extends HeldItemFeature<T, M> {
|
||||||
|
|
||||||
public IllagerHeldItemFeature(IPonyRenderContext<T,M> livingPony) {
|
public IllagerHeldItemFeature(IPonyRenderContext<T,M> livingPony) {
|
||||||
super(livingPony);
|
super(livingPony);
|
||||||
|
|
|
@ -4,20 +4,20 @@ import net.minecraft.client.render.entity.LivingEntityRenderer;
|
||||||
import net.minecraft.entity.mob.AbstractSkeletonEntity;
|
import net.minecraft.entity.mob.AbstractSkeletonEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.entity.ModelSkeletonPony;
|
import com.minelittlepony.client.model.entity.SkeleponyModel;
|
||||||
|
|
||||||
public class StrayClothingFeature<Skeleton extends AbstractSkeletonEntity> extends AbstractClothingFeature<Skeleton, ModelSkeletonPony<Skeleton>> {
|
public class StrayClothingFeature<Skeleton extends AbstractSkeletonEntity> extends AbstractClothingFeature<Skeleton, SkeleponyModel<Skeleton>> {
|
||||||
|
|
||||||
public static final Identifier STRAY_SKELETON_OVERLAY = new Identifier("minelittlepony", "textures/entity/skeleton/stray_pony_overlay.png");
|
public static final Identifier STRAY_SKELETON_OVERLAY = new Identifier("minelittlepony", "textures/entity/skeleton/stray_pony_overlay.png");
|
||||||
|
|
||||||
private final ModelSkeletonPony<Skeleton> overlayModel = new ModelSkeletonPony<>();
|
private final SkeleponyModel<Skeleton> overlayModel = new SkeleponyModel<>();
|
||||||
|
|
||||||
public StrayClothingFeature(LivingEntityRenderer<Skeleton, ModelSkeletonPony<Skeleton>> render) {
|
public StrayClothingFeature(LivingEntityRenderer<Skeleton, SkeleponyModel<Skeleton>> render) {
|
||||||
super(render);
|
super(render);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ModelSkeletonPony<Skeleton> getOverlayModel() {
|
protected SkeleponyModel<Skeleton> getOverlayModel() {
|
||||||
return overlayModel;
|
return overlayModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony.client.render.entity.npc;
|
package com.minelittlepony.client.render.entity.npc;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelIllagerPony;
|
import com.minelittlepony.client.model.entity.IllagerPonyModel;
|
||||||
import com.minelittlepony.client.render.entity.feature.IllagerHeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.IllagerHeldItemFeature;
|
||||||
import com.minelittlepony.client.render.entity.PonyRenderer;
|
import com.minelittlepony.client.render.entity.PonyRenderer;
|
||||||
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
||||||
|
@ -17,7 +17,7 @@ import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
import net.minecraft.util.math.Vec3d;
|
import net.minecraft.util.math.Vec3d;
|
||||||
|
|
||||||
public abstract class IllagerPonyRenderer<T extends IllagerEntity> extends PonyRenderer<T, ModelIllagerPony<T>> {
|
public abstract class IllagerPonyRenderer<T extends IllagerEntity> extends PonyRenderer<T, IllagerPonyModel<T>> {
|
||||||
|
|
||||||
public static final Identifier ILLUSIONIST = new Identifier("minelittlepony", "textures/entity/illager/illusionist_pony.png");
|
public static final Identifier ILLUSIONIST = new Identifier("minelittlepony", "textures/entity/illager/illusionist_pony.png");
|
||||||
public static final Identifier EVOKER = new Identifier("minelittlepony", "textures/entity/illager/evoker_pony.png");
|
public static final Identifier EVOKER = new Identifier("minelittlepony", "textures/entity/illager/evoker_pony.png");
|
||||||
|
@ -28,7 +28,7 @@ public abstract class IllagerPonyRenderer<T extends IllagerEntity> extends PonyR
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected HeldItemFeature<T, ModelIllagerPony<T>> createItemHoldingLayer() {
|
protected HeldItemFeature<T, IllagerPonyModel<T>> createItemHoldingLayer() {
|
||||||
return new IllagerHeldItemFeature<>(this);
|
return new IllagerHeldItemFeature<>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,12 @@ import net.minecraft.entity.mob.PillagerEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelPillagerPony;
|
import com.minelittlepony.client.model.entity.PillagerPonyModel;
|
||||||
import com.minelittlepony.client.render.entity.feature.IllagerHeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.IllagerHeldItemFeature;
|
||||||
import com.minelittlepony.client.render.entity.PonyRenderer;
|
import com.minelittlepony.client.render.entity.PonyRenderer;
|
||||||
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
import com.minelittlepony.client.render.entity.feature.HeldItemFeature;
|
||||||
|
|
||||||
public class PillagerRenderer extends PonyRenderer<PillagerEntity, ModelPillagerPony<PillagerEntity>> {
|
public class PillagerRenderer extends PonyRenderer<PillagerEntity, PillagerPonyModel<PillagerEntity>> {
|
||||||
|
|
||||||
private static final Identifier TEXTURES = new Identifier("minelittlepony", "textures/entity/illager/pillager_pony.png");
|
private static final Identifier TEXTURES = new Identifier("minelittlepony", "textures/entity/illager/pillager_pony.png");
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public class PillagerRenderer extends PonyRenderer<PillagerEntity, ModelPillager
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected HeldItemFeature<PillagerEntity, ModelPillagerPony<PillagerEntity>> createItemHoldingLayer() {
|
protected HeldItemFeature<PillagerEntity, PillagerPonyModel<PillagerEntity>> createItemHoldingLayer() {
|
||||||
return new IllagerHeldItemFeature<>(this);
|
return new IllagerHeldItemFeature<>(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package com.minelittlepony.client.render.entity.npc;
|
package com.minelittlepony.client.render.entity.npc;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelVillagerPony;
|
import com.minelittlepony.client.model.entity.VillagerPonyModel;
|
||||||
import com.minelittlepony.util.resources.ITextureSupplier;
|
import com.minelittlepony.util.resources.ITextureSupplier;
|
||||||
|
|
||||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.passive.VillagerEntity;
|
import net.minecraft.entity.passive.VillagerEntity;
|
||||||
|
|
||||||
public class RenderPonyVillager extends AbstractVillagerRenderer<VillagerEntity, ModelVillagerPony<VillagerEntity>> {
|
public class RenderPonyVillager extends AbstractVillagerRenderer<VillagerEntity, VillagerPonyModel<VillagerEntity>> {
|
||||||
|
|
||||||
private static final String TYPE = "villager";
|
private static final String TYPE = "villager";
|
||||||
private static final ITextureSupplier<String> FORMATTER = ITextureSupplier.formatted("minelittlepony", "textures/entity/villager/%s.png");
|
private static final ITextureSupplier<String> FORMATTER = ITextureSupplier.formatted("minelittlepony", "textures/entity/villager/%s.png");
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package com.minelittlepony.client.render.entity.npc;
|
package com.minelittlepony.client.render.entity.npc;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.ModelZombieVillagerPony;
|
import com.minelittlepony.client.model.entity.ZomponyVillagerModel;
|
||||||
import com.minelittlepony.util.resources.ITextureSupplier;
|
import com.minelittlepony.util.resources.ITextureSupplier;
|
||||||
|
|
||||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.mob.ZombieVillagerEntity;
|
import net.minecraft.entity.mob.ZombieVillagerEntity;
|
||||||
|
|
||||||
public class RenderPonyZombieVillager extends AbstractVillagerRenderer<ZombieVillagerEntity, ModelZombieVillagerPony> {
|
public class RenderPonyZombieVillager extends AbstractVillagerRenderer<ZombieVillagerEntity, ZomponyVillagerModel> {
|
||||||
|
|
||||||
private static final String TYPE = "zombie_villager";
|
private static final String TYPE = "zombie_villager";
|
||||||
private static final ITextureSupplier<String> FORMATTER = ITextureSupplier.formatted("minelittlepony", "textures/entity/zombie_villager/zombie_%s.png");
|
private static final ITextureSupplier<String> FORMATTER = ITextureSupplier.formatted("minelittlepony", "textures/entity/zombie_villager/zombie_%s.png");
|
||||||
|
|
|
@ -6,11 +6,10 @@ import net.minecraft.entity.passive.WanderingTraderEntity;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import com.minelittlepony.client.model.ModelType;
|
import com.minelittlepony.client.model.ModelType;
|
||||||
import com.minelittlepony.client.model.entity.race.ModelAlicorn;
|
import com.minelittlepony.client.model.entity.race.AlicornModel;
|
||||||
import com.minelittlepony.client.render.entity.PonyRenderer;
|
import com.minelittlepony.client.render.entity.PonyRenderer;
|
||||||
import com.minelittlepony.client.render.entity.PonyRenderer.Caster;
|
|
||||||
|
|
||||||
public class TraderRenderer extends PonyRenderer.Caster<WanderingTraderEntity, ModelAlicorn<WanderingTraderEntity>> {
|
public class TraderRenderer extends PonyRenderer.Caster<WanderingTraderEntity, AlicornModel<WanderingTraderEntity>> {
|
||||||
|
|
||||||
public static final Identifier TEXTURE = new Identifier("minelittlepony", "textures/entity/wandering_trader_pony.png");
|
public static final Identifier TEXTURE = new Identifier("minelittlepony", "textures/entity/wandering_trader_pony.png");
|
||||||
|
|
||||||
|
|
|
@ -209,11 +209,11 @@ public enum PonyTransformation {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final Map<Size, PonyTransformation> sizeToTransform = Maps.newEnumMap(Size.class);
|
private static final Map<Size, PonyTransformation> REGISTRY = Maps.newEnumMap(Size.class);
|
||||||
|
|
||||||
static {
|
static {
|
||||||
for (PonyTransformation i : values()) {
|
for (PonyTransformation i : values()) {
|
||||||
sizeToTransform.put(i.size, i);
|
REGISTRY.put(i.size, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,6 +233,6 @@ public enum PonyTransformation {
|
||||||
public abstract void transform(IModel model, BodyPart part, MatrixStack stack);
|
public abstract void transform(IModel model, BodyPart part, MatrixStack stack);
|
||||||
|
|
||||||
public static PonyTransformation forSize(Size size) {
|
public static PonyTransformation forSize(Size size) {
|
||||||
return sizeToTransform.getOrDefault(size, NORMAL);
|
return REGISTRY.getOrDefault(size, NORMAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue