mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Redundant type arguments
This commit is contained in:
parent
20de3dc7cb
commit
0e7fa5878f
4 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ import javax.annotation.Nonnull;
|
|||
|
||||
public abstract class RenderPonyMob<T extends MobEntity, M extends EntityModel<T> & IPonyModel<T>> extends MobEntityRenderer<T, M> implements IPonyRender<T, M> {
|
||||
|
||||
protected RenderPony<T, M> renderPony = new RenderPony<T, M>(this);
|
||||
protected RenderPony<T, M> renderPony = new RenderPony<>(this);
|
||||
|
||||
public RenderPonyMob(EntityRenderDispatcher manager, M model) {
|
||||
super(manager, model, 0.5F);
|
||||
|
|
|
@ -14,7 +14,7 @@ public class RenderPonyPillager extends RenderPonyMob<PillagerEntity, ModelPilla
|
|||
private static final Identifier TEXTURES = new Identifier("minelittlepony", "textures/entity/illager/pillager_pony.png");
|
||||
|
||||
public RenderPonyPillager(EntityRenderDispatcher manager, EntityRendererRegistry.Context context) {
|
||||
super(manager, new ModelPillagerPony<PillagerEntity>());
|
||||
super(manager, new ModelPillagerPony<>());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,11 +25,11 @@ public enum Wearable implements ITriggerPixelMapped<Wearable> {
|
|||
}
|
||||
|
||||
public static Wearable[] flags(boolean[] flags) {
|
||||
List<Wearable> wears = new ArrayList<Wearable>();
|
||||
List<Wearable> wears = new ArrayList<>();
|
||||
Wearable[] values = values();
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
if (flags[i]) wears.add(values[i]);
|
||||
}
|
||||
return wears.toArray(new Wearable[wears.size()]);
|
||||
return wears.stream().toArray(Wearable[]::new);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public class BasicEasingInterpolator implements IInterpolator {
|
|||
return instanceCache.getUnchecked(id);
|
||||
}
|
||||
|
||||
private final Map<String, Float> properties = new HashMap<String, Float>();
|
||||
private final Map<String, Float> properties = new HashMap<>();
|
||||
|
||||
private float getLast(String key, float to) {
|
||||
if (properties.containsKey(key)) {
|
||||
|
|
Loading…
Reference in a new issue