mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 20:47:59 +01:00
Didn't mean to commit that
This commit is contained in:
parent
fa7417f87b
commit
2fc4dcae90
1 changed files with 7 additions and 14 deletions
|
@ -3,11 +3,11 @@ package com.minelittlepony.model.armour;
|
|||
import com.minelittlepony.model.capabilities.IModelWrapper;
|
||||
import com.minelittlepony.pony.data.IPonyData;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class PonyArmor implements IModelWrapper, IEquestrianArmor {
|
||||
|
||||
public ModelPonyArmor outerLayer;
|
||||
public ModelPonyArmor innerLayer;
|
||||
|
||||
public PonyArmor(ModelPonyArmor outer, ModelPonyArmor inner) {
|
||||
outerLayer = outer;
|
||||
innerLayer = inner;
|
||||
|
@ -25,20 +25,13 @@ public class PonyArmor implements IModelWrapper, IEquestrianArmor {
|
|||
innerLayer.init(0, 0.5F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModelPonyArmor getArmorForLayer(ArmorLayer layer) {
|
||||
|
||||
@Nullable
|
||||
public ModelPonyArmor outerLayer;
|
||||
@Nullable
|
||||
public ModelPonyArmor innerLayer;
|
||||
|
||||
|
||||
@Override @Nonnull
|
||||
public ModelPonyArmor getArmorForLayer(@Nullable ArmorLayer layer) {
|
||||
|
||||
if (layer.ordinal() == ArmorLayer.INNER.ordinal()) {
|
||||
if (layer == ArmorLayer.INNER) {
|
||||
return innerLayer;
|
||||
}
|
||||
|
||||
return null;
|
||||
return outerLayer;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue