Cleanup
This commit is contained in:
parent
91fbbbd0e6
commit
f8ce85d1ba
|
@ -1,14 +1,14 @@
|
|||
package com.legacy.aether.client.renders.entities.layer;
|
||||
|
||||
import com.legacy.aether.client.models.entities.FlyingCowModel;
|
||||
import com.legacy.aether.client.renders.entities.FlyingCowRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityFlyingCow;
|
||||
import net.minecraft.client.model.ModelCow;
|
||||
import net.minecraft.client.renderer.entity.layers.LayerRenderer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import com.legacy.aether.client.models.entities.FlyingCowModel;
|
||||
import com.legacy.aether.client.renders.entities.FlyingCowRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityFlyingCow;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class LayerFlyingCowSaddle implements LayerRenderer<EntityFlyingCow>
|
||||
{
|
||||
|
|
|
@ -178,6 +178,35 @@ public class EntityAerwhale extends EntityFlying implements IMob
|
|||
this.motionYaw += 10F;
|
||||
}
|
||||
|
||||
if (this.posY < -64.0D)
|
||||
{
|
||||
this.kill();
|
||||
}
|
||||
|
||||
this.worldObj.theProfiler.startSection("ai");
|
||||
|
||||
if (this.isMovementBlocked())
|
||||
{
|
||||
this.isJumping = false;
|
||||
this.moveStrafing = 0.0F;
|
||||
this.moveForward = 0.0F;
|
||||
this.randomYawVelocity = 0.0F;
|
||||
}
|
||||
|
||||
this.worldObj.theProfiler.endSection();
|
||||
|
||||
this.worldObj.theProfiler.startSection("push");
|
||||
this.collideWithNearbyEntities();
|
||||
this.worldObj.theProfiler.endSection();
|
||||
|
||||
++this.entityAge;
|
||||
this.worldObj.theProfiler.startSection("checkDespawn");
|
||||
this.despawnEntity();
|
||||
this.worldObj.theProfiler.endSection();
|
||||
this.worldObj.theProfiler.startSection("goalSelector");
|
||||
this.tasks.onUpdateTasks();
|
||||
this.worldObj.theProfiler.endSection();
|
||||
|
||||
super.onEntityUpdate();
|
||||
|
||||
this.moveEntity(this.motionX, this.motionY, this.motionZ);
|
||||
|
|
|
@ -31,7 +31,7 @@ import com.legacy.aether.common.networking.AetherNetworkingManager;
|
|||
import com.legacy.aether.common.networking.packets.PacketAchievement;
|
||||
import com.legacy.aether.common.player.capability.PlayerAetherProvider;
|
||||
import com.legacy.aether.common.registry.achievements.AchievementsAether;
|
||||
import com.legacy.aether.common.registry.objects.AetherAchievement;
|
||||
import com.legacy.aether.common.registry.achievements.AetherAchievement;
|
||||
|
||||
public class PlayerAetherEvents
|
||||
{
|
||||
|
|
|
@ -8,7 +8,6 @@ import net.minecraftforge.common.AchievementPage;
|
|||
|
||||
import com.legacy.aether.common.blocks.BlocksAether;
|
||||
import com.legacy.aether.common.items.ItemsAether;
|
||||
import com.legacy.aether.common.registry.objects.AetherAchievement;
|
||||
|
||||
public class AchievementsAether
|
||||
{
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
package com.legacy.aether.common.registry.achievements;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.text.ITextComponent;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
|
||||
public class AetherAchievement extends Achievement
|
||||
{
|
||||
|
||||
public AetherAchievement(String name, String desc, int length, int width, ItemStack stack, Achievement parentAchievement)
|
||||
{
|
||||
super(name, desc, length, width, stack, parentAchievement);
|
||||
}
|
||||
|
||||
public AetherAchievement(String name, String desc, int length, int width, Item item, Achievement parentAchievement)
|
||||
{
|
||||
this(name, desc, length, width, new ItemStack(item), parentAchievement);
|
||||
}
|
||||
|
||||
public AetherAchievement(String name, String desc, int length, int width, Block block, Achievement parentAchievement)
|
||||
{
|
||||
this(name, desc, length, width, new ItemStack(block), parentAchievement);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ITextComponent getStatName()
|
||||
{
|
||||
ITextComponent ichatcomponent = super.getStatName();
|
||||
ichatcomponent.getStyle().setColor(TextFormatting.AQUA);
|
||||
return ichatcomponent;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
package com.legacy.aether.common.registry.objects;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public abstract class LoreEntry
|
||||
{
|
||||
public abstract LoreEntry initEntries();
|
||||
|
||||
public abstract ArrayList<EntryInformation> EntryInformation();
|
||||
}
|
Loading…
Reference in a new issue