KeyLime update attempt 2
@ -0,0 +1,120 @@
|
||||
package com.zivilon.cinder_loe.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import lotr.common.block.LOTRBlockChandelier;
|
||||
import lotr.common.block.LOTRBlockOrcChain;
|
||||
import net.minecraft.block.*;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class bronzeChain extends LOTRBlockOrcChain {
|
||||
|
||||
public IIcon icon;
|
||||
@SideOnly(value= Side.CLIENT)
|
||||
private IIcon iconMiddle;
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
private IIcon iconTop;
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
private IIcon iconBottom;
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
private IIcon iconSingle;
|
||||
|
||||
public bronzeChain() {
|
||||
this.setHardness(1.0f);
|
||||
this.setStepSound(Block.soundTypeMetal);
|
||||
this.textureName = "lotr:bronzeChain";
|
||||
setBlockName("lotr:bronzeChain");
|
||||
setBlockTextureName("lotr:bronzeChain");
|
||||
float f = 0.2f;
|
||||
this.setBlockBounds(0.5f - f, 0.0f, 0.5f - f, 0.5f + f, 1.0f, 0.5f + f);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconregister) {
|
||||
this.iconMiddle = iconregister.registerIcon(this.getTextureName() + "_mid");
|
||||
this.iconTop = iconregister.registerIcon(this.getTextureName() + "_top");
|
||||
this.iconBottom = iconregister.registerIcon(this.getTextureName() + "_bottom");
|
||||
this.iconSingle = iconregister.registerIcon(this.getTextureName() + "_single");
|
||||
this.blockIcon = iconregister.registerIcon(this.getTextureName());
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess world, int i, int j, int k, int side) {
|
||||
boolean chainBelow;
|
||||
Block above = world.getBlock(i, j + 1, k);
|
||||
Block below = world.getBlock(i, j - 1, k);
|
||||
boolean chainAbove = above instanceof bronzeChain;
|
||||
boolean bl = chainBelow = below instanceof bronzeChain || below instanceof LOTRBlockChandelier;
|
||||
if (chainAbove && chainBelow) {
|
||||
return this.iconMiddle;
|
||||
}
|
||||
if (chainAbove) {
|
||||
return this.iconBottom;
|
||||
}
|
||||
if (chainBelow) {
|
||||
return this.iconTop;
|
||||
}
|
||||
return this.iconSingle;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public IIcon getIcon(int i, int j) {
|
||||
return this.iconMiddle;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public String getItemIconName() {
|
||||
return this.getTextureName();
|
||||
}
|
||||
|
||||
public boolean canPlaceBlockAt(World world, int i, int j, int k) {
|
||||
Block block = world.getBlock(i, j + 1, k);
|
||||
int meta = world.getBlockMetadata(i, j + 1, k);
|
||||
if (block instanceof bronzeChain) {
|
||||
return true;
|
||||
}
|
||||
if (block instanceof BlockFence || block instanceof BlockWall) {
|
||||
return true;
|
||||
}
|
||||
if (block instanceof BlockSlab && !block.isOpaqueCube() && (meta & 8) == 0) {
|
||||
return true;
|
||||
}
|
||||
if (block instanceof BlockStairs && (meta & 4) == 0) {
|
||||
return true;
|
||||
}
|
||||
return world.getBlock(i, j + 1, k).isSideSolid((IBlockAccess)world, i, j + 1, k, ForgeDirection.DOWN);
|
||||
}
|
||||
|
||||
public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer entityplayer, int side, float f, float f1, float f2) {
|
||||
ItemStack itemstack = entityplayer.getHeldItem();
|
||||
if (itemstack != null && itemstack.getItem() == Item.getItemFromBlock((Block)this)) {
|
||||
Block block;
|
||||
int j1;
|
||||
for (j1 = j; j1 >= 0 && j1 < world.getHeight() && (block = world.getBlock(i, j1, k)) == this; --j1) {
|
||||
}
|
||||
if (j1 >= 0 && j1 < world.getHeight()) {
|
||||
block = world.getBlock(i, j1, k);
|
||||
if (this.canPlaceBlockOnSide(world, i, j1, k, side) && block.isReplaceable((IBlockAccess)world, i, j1, k) && !block.getMaterial().isLiquid()) {
|
||||
int thisMeta = world.getBlockMetadata(i, j, k);
|
||||
world.setBlock(i, j1, k, (Block)this, thisMeta, 3);
|
||||
world.playSoundEffect((double)((float)i + 0.5f), (double)((float)j1 + 0.5f), (double)((float)k + 0.5f), this.stepSound.func_150496_b(), (this.stepSound.getVolume() + 1.0f) / 2.0f, this.stepSound.getPitch() * 0.8f);
|
||||
if (!entityplayer.capabilities.isCreativeMode) {
|
||||
--itemstack.stackSize;
|
||||
}
|
||||
if (itemstack.stackSize <= 0) {
|
||||
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.zivilon.cinder_loe.blocks;
|
||||
|
||||
import com.zivilon.cinder_loe.util.Utilities;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class cobbleDrystone extends Block {
|
||||
|
||||
public cobbleDrystone() {
|
||||
super(Material.rock); // Choose the appropriate material
|
||||
// Set other properties like hardness, resistance, name, etc.
|
||||
setHardness(2.0F);
|
||||
setResistance(5.0F);
|
||||
setBlockTextureName(Utilities.toSnakeCase("lotr:cobble_drystone"));
|
||||
setBlockName("lotr:cobbleDrystone");
|
||||
setCreativeTab((CreativeTabs)Utilities.reflected_tab_block);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.blockIcon = iconRegister.registerIcon("lotr:cobbleDrystone");
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.zivilon.cinder_loe.blocks;
|
||||
|
||||
import com.zivilon.cinder_loe.util.Utilities;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class cutDrystone extends Block {
|
||||
|
||||
public cutDrystone() {
|
||||
super(Material.rock); // Choose the appropriate material
|
||||
// Set other properties like hardness, resistance, name, etc.
|
||||
setHardness(2.0F);
|
||||
setResistance(5.0F);
|
||||
setBlockTextureName(Utilities.toSnakeCase("lotr:cut_drystone"));
|
||||
setBlockName("lotr:cutDrystone");
|
||||
setCreativeTab((CreativeTabs)Utilities.reflected_tab_block);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.blockIcon = iconRegister.registerIcon("lotr:cutDrystone");
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.zivilon.cinder_loe.blocks;
|
||||
|
||||
import com.zivilon.cinder_loe.util.Utilities;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class reeflessCoral extends Block {
|
||||
|
||||
public reeflessCoral() {
|
||||
super(Material.rock); // Choose the appropriate material
|
||||
// Set other properties like hardness, resistance, name, etc.
|
||||
setHardness(2.0F);
|
||||
setResistance(5.0F);
|
||||
setBlockTextureName(Utilities.toSnakeCase("lotr:reeflessCoral"));
|
||||
setBlockName("lotr:reeflessCoral");
|
||||
setCreativeTab((CreativeTabs)Utilities.reflected_tab_block);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
this.blockIcon = iconRegister.registerIcon("lotr:reeflessCoral");
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.zivilon.cinder_loe.client.render;
|
||||
|
||||
import com.zivilon.cinder_loe.entity.Limwaith;
|
||||
import lotr.client.model.LOTRModelHuman;
|
||||
import lotr.client.render.entity.LOTRRandomSkins;
|
||||
import lotr.client.render.entity.LOTRRenderBiped;
|
||||
import lotr.common.entity.LOTRRandomSkinEntity;
|
||||
import lotr.common.entity.npc.LOTREntityNPC;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderLimwaithShaman extends RenderLimwaith {
|
||||
private static LOTRRandomSkins outfits;
|
||||
|
||||
public RenderLimwaithShaman() {
|
||||
outfits = LOTRRandomSkins.loadSkinsList("cinder_loe:mob/limwaith/shaman_outfit");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int shouldRenderPass(EntityLiving entity, int pass, float f) {
|
||||
Limwaith shaman = (Limwaith) entity;
|
||||
if (pass == 1 && shaman.getEquipmentInSlot(3) == null) {
|
||||
this.setRenderPassModel((ModelBase)this.outfitModel);
|
||||
this.bindTexture(outfits.getRandomSkin(shaman));
|
||||
return 1;
|
||||
}
|
||||
return super.shouldRenderPass((EntityLiving)shaman, pass, f);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.zivilon.cinder_loe.entity;
|
||||
|
||||
import com.zivilon.cinder_loe.CinderLoE;
|
||||
import lotr.common.LOTRShields;
|
||||
import net.minecraft.entity.IEntityLivingData;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class LimwaithBoneWarrior extends Limwaith {
|
||||
public LimwaithBoneWarrior(World world) {
|
||||
super(world);
|
||||
this.npcShield = LOTRShields.ALIGNMENT_MOREDAIN;
|
||||
}
|
||||
|
||||
public IEntityLivingData onSpawnWithEgg(IEntityLivingData data) {
|
||||
data = super.onSpawnWithEgg(data);
|
||||
int i = rand.nextInt(6);
|
||||
if (i == 0) {
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.truncheonLimwaith));
|
||||
} else if (i == 1 || i == 2) {
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.tridentLimwaith));
|
||||
} else if (i == 3 || i == 4) {
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.spearLimwaith));
|
||||
} else {
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.battleaxeLimwaith));
|
||||
}
|
||||
|
||||
if (rand.nextInt(6) == 0) {
|
||||
this.npcItemsInv.setSpearBackup(this.npcItemsInv.getMeleeWeapon());
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.spearLimwaith));
|
||||
}
|
||||
|
||||
this.npcItemsInv.setIdleItem(this.npcItemsInv.getMeleeWeapon());
|
||||
setCurrentItemOrArmor(1, new ItemStack(CinderLoE.bootsboneLimwaith));
|
||||
setCurrentItemOrArmor(2, new ItemStack(CinderLoE.legsboneLimwaith));
|
||||
setCurrentItemOrArmor(3, new ItemStack(CinderLoE.bodyboneLimwaith));
|
||||
if (rand.nextInt(10) != 0)
|
||||
setCurrentItemOrArmor(4, new ItemStack(CinderLoE.helmetboneLimwaith));
|
||||
return data;
|
||||
}
|
||||
@Override
|
||||
public ItemStack getPickedResult(MovingObjectPosition target) {
|
||||
return new ItemStack(CinderLoE.limwaithBoneWarriorSpawnEgg, 1);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.zivilon.cinder_loe.entity;
|
||||
|
||||
import com.zivilon.cinder_loe.CinderLoE;
|
||||
import lotr.common.LOTRLevelData;
|
||||
import lotr.common.LOTRMod;
|
||||
import lotr.common.entity.npc.LOTREntityDwarf;
|
||||
import lotr.common.entity.npc.LOTRTradeEntries;
|
||||
import lotr.common.entity.npc.LOTRTradeEntries.TradeType;
|
||||
import lotr.common.entity.npc.LOTRTradeEntry;
|
||||
import lotr.common.entity.npc.LOTRTradeable;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.IEntityLivingData;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import static lotr.common.entity.npc.LOTRTradeEntries.HARAD_FISHMONGER_BUY;
|
||||
import static lotr.common.entity.npc.LOTRTradeEntries.HARAD_FISHMONGER_SELL;
|
||||
|
||||
public class LimwaithFishmonger extends Limwaith implements LOTRTradeable {
|
||||
|
||||
public LimwaithFishmonger(World world) {
|
||||
super(world);
|
||||
}
|
||||
|
||||
public IEntityLivingData onSpawnWithEgg(IEntityLivingData data) {
|
||||
data = super.onSpawnWithEgg(data);
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.tridentLimwaith));
|
||||
this.npcItemsInv.setIdleItem(this.npcItemsInv.getMeleeWeapon());
|
||||
return data;
|
||||
}
|
||||
|
||||
public LOTRTradeEntries getBuyPool() {
|
||||
return HARAD_FISHMONGER_BUY;
|
||||
}
|
||||
|
||||
public LOTRTradeEntries getSellPool() {
|
||||
return HARAD_FISHMONGER_SELL;
|
||||
}
|
||||
|
||||
public float getAlignmentBonus() {
|
||||
return 2.0F;
|
||||
}
|
||||
|
||||
protected void dropFewItems(boolean flag, int i) {
|
||||
super.dropFewItems(flag, i);
|
||||
dropItem(getLimwaithTraderDrop(), 1 + rand.nextInt(3) + rand.nextInt(i + 1));
|
||||
}
|
||||
protected Item getLimwaithTraderDrop() {
|
||||
return LOTRMod.pearl;
|
||||
}
|
||||
|
||||
public boolean canTradeWith(EntityPlayer entityplayer) {
|
||||
return (LOTRLevelData.getData(entityplayer).getAlignment(getFaction()) >= 100.0F && isFriendlyAndAligned(entityplayer));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlayerTrade(EntityPlayer entityplayer, TradeType type, ItemStack itemstack) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attackEntityWithRangedAttack(EntityLivingBase p_82196_1_, float p_82196_2_) {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.zivilon.cinder_loe.entity;
|
||||
|
||||
import com.zivilon.cinder_loe.CinderLoE;
|
||||
import lotr.common.LOTRFoods;
|
||||
import lotr.common.LOTRLevelData;
|
||||
import lotr.common.LOTRMod;
|
||||
import lotr.common.entity.npc.LOTREntityDwarf;
|
||||
import lotr.common.entity.npc.LOTRTradeEntries;
|
||||
import lotr.common.entity.npc.LOTRTradeEntries.TradeType;
|
||||
import lotr.common.entity.npc.LOTRTradeEntry;
|
||||
import lotr.common.entity.npc.LOTRTradeable;
|
||||
import lotr.common.item.LOTRItemMug;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.IEntityLivingData;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class LimwaithShaman extends Limwaith implements LOTRTradeable.Smith {
|
||||
public static LOTRTradeEntries LIMWAITH_SHAMAN_BUY;
|
||||
public static LOTRTradeEntries LIMWAITH_SHAMAN_SELL;
|
||||
|
||||
public LimwaithShaman(World world) {
|
||||
super(world);
|
||||
}
|
||||
|
||||
public IEntityLivingData onSpawnWithEgg(IEntityLivingData data) {
|
||||
data = super.onSpawnWithEgg(data);
|
||||
this.npcItemsInv.setMeleeWeapon(new ItemStack(CinderLoE.daggerLimwaithPoisoned));
|
||||
this.npcItemsInv.setIdleItem(this.npcItemsInv.getMeleeWeapon());
|
||||
return data;
|
||||
}
|
||||
|
||||
public LOTRTradeEntries getBuyPool() {
|
||||
return LIMWAITH_SHAMAN_BUY;
|
||||
}
|
||||
|
||||
public LOTRTradeEntries getSellPool() {
|
||||
return LIMWAITH_SHAMAN_SELL;
|
||||
}
|
||||
|
||||
public float getAlignmentBonus() {
|
||||
return 2.0F;
|
||||
}
|
||||
|
||||
protected void dropFewItems(boolean flag, int i) {
|
||||
super.dropFewItems(flag, i);
|
||||
dropItem(getLimwaithTraderDrop(), 1 + rand.nextInt(2) + rand.nextInt(i + 1));
|
||||
}
|
||||
|
||||
public boolean canTradeWith(EntityPlayer entityplayer) {
|
||||
return (LOTRLevelData.getData(entityplayer).getAlignment(getFaction()) >= 100.0F && isFriendlyAndAligned(entityplayer));
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
LIMWAITH_SHAMAN_BUY = new LOTRTradeEntries(TradeType.BUY,
|
||||
new LOTRTradeEntry(new ItemStack(CinderLoE.daggerLimwaith), 12),
|
||||
new LOTRTradeEntry(new ItemStack(CinderLoE.daggerLimwaithPoisoned), 20),
|
||||
new LOTRTradeEntry(new ItemStack(CinderLoE.blowgunLimwaith), 25),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.tauredainDart, 4), 5),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.tauredainDartPoisoned, 4), 10),
|
||||
new LOTRTradeEntry(new ItemStack(CinderLoE.bonemold, 2), 4),
|
||||
new LOTRTradeEntry(new ItemStack(Items.bone, 1), 1),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.bottlePoison), 10));
|
||||
|
||||
LIMWAITH_SHAMAN_SELL = new LOTRTradeEntries(TradeType.SELL,
|
||||
new LOTRTradeEntry(new ItemStack(Items.gold_nugget), 2),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.emerald), 15),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.amber), 10),
|
||||
new LOTRTradeEntry(new ItemStack(Items.glass_bottle), 2),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.mug), 1),
|
||||
new LOTRTradeEntry(new ItemStack(Items.bone), 1),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.rhinoHorn), 5),
|
||||
new LOTRTradeEntry(new ItemStack(Items.dye, 3, 15), 1),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.gemsbokHorn), 4),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.doubleFlower, 2, 2), 1),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.doubleFlower, 2, 3), 1),
|
||||
new LOTRTradeEntry(new ItemStack(Blocks.red_mushroom, 1, 0), 2),
|
||||
new LOTRTradeEntry(new ItemStack(Blocks.brown_mushroom, 1, 0), 2),
|
||||
new LOTRTradeEntry(new ItemStack(CinderLoE.bonemold, 2), 3),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.mango), 1),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.banana), 1),
|
||||
new LOTRTradeEntry(new ItemStack(LOTRMod.corn, 2), 1));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlayerTrade(EntityPlayer entityplayer, TradeType type, ItemStack itemstack) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attackEntityWithRangedAttack(EntityLivingBase p_82196_1_, float p_82196_2_) {
|
||||
}
|
||||
|
||||
protected Item getLimwaithTraderDrop() {
|
||||
return LOTRMod.pearl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSpeechBank(EntityPlayer entityplayer) {
|
||||
if (this.isFriendlyAndAligned(entityplayer)) {
|
||||
if (this.canTradeWith(entityplayer)) {
|
||||
return "limwaith/shaman/friendly";
|
||||
}
|
||||
return "limwaith/shaman/neutral";
|
||||
}
|
||||
return "limwaith/shaman/hostile";
|
||||
}
|
||||
|
||||
}
|
||||
|
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 5.0 KiB |