mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Changed the ESD description
This commit is contained in:
parent
2de8fb1ea9
commit
6023100fac
6 changed files with 20 additions and 20 deletions
|
@ -114,10 +114,11 @@ public class BlockInputter extends BlockContainerBase implements INameableItem{
|
|||
@SuppressWarnings("unchecked")
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean isHeld) {
|
||||
list.add(StatCollector.translateToLocal("tooltip."+ModUtil.MOD_ID_LOWER+".blockInputter.desc.1"));
|
||||
if(KeyUtil.isShiftPressed()){
|
||||
list.add(StatCollector.translateToLocalFormatted("tooltip." + ModUtil.MOD_ID_LOWER + ".blockInputter.desc." + 1, StringUtil.OBFUSCATED, StringUtil.LIGHT_GRAY));
|
||||
for(int i = 1; i < 7; i++){
|
||||
list.add(StatCollector.translateToLocal("tooltip." + ModUtil.MOD_ID_LOWER + ".blockInputter.desc." + (i + 1)));
|
||||
list.add(StatCollector.translateToLocalFormatted("tooltip."+ModUtil.MOD_ID_LOWER+".blockInputter.desc.2", StringUtil.OBFUSCATED, StringUtil.LIGHT_GRAY));
|
||||
for(int i = 3; i <= 7; i++){
|
||||
list.add(StatCollector.translateToLocal("tooltip." + ModUtil.MOD_ID_LOWER + ".blockInputter.desc." + i));
|
||||
}
|
||||
if((((BlockInputter)theBlock).isAdvanced)) list.add(StatCollector.translateToLocal("tooltip." + ModUtil.MOD_ID_LOWER + "." + ((INameableItem)theBlock).getName() + ".desc"));
|
||||
}
|
||||
|
|
|
@ -4,10 +4,7 @@ import cpw.mods.fml.relauncher.Side;
|
|||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import ellpeck.actuallyadditions.tile.TileEntityPhantomPlacer;
|
||||
import ellpeck.actuallyadditions.tile.TileEntityPhantomface;
|
||||
import ellpeck.actuallyadditions.util.INameableItem;
|
||||
import ellpeck.actuallyadditions.util.ItemUtil;
|
||||
import ellpeck.actuallyadditions.util.KeyUtil;
|
||||
import ellpeck.actuallyadditions.util.ModUtil;
|
||||
import ellpeck.actuallyadditions.util.*;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -42,7 +39,7 @@ public class ItemPhantomConnector extends Item implements INameableItem{
|
|||
if(this.checkHasConnection(stack, player, tile)){
|
||||
((TileEntityPhantomface)tile).boundPosition = this.getStoredPosition(stack);
|
||||
((TileEntityPhantomface)tile).boundWorld = this.getStoredWorld(stack);
|
||||
TileEntityPhantomface.updateAround(tile);
|
||||
WorldUtil.updateTileAndTilesAround(tile);
|
||||
this.clearStorage(stack);
|
||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("tooltip."+ModUtil.MOD_ID_LOWER+".phantom.connected.desc")));
|
||||
return true;
|
||||
|
|
|
@ -47,16 +47,6 @@ public class TileEntityPhantomface extends TileEntityInventoryBase{
|
|||
return newRange;
|
||||
}
|
||||
|
||||
public static void updateAround(TileEntity tile){
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord+1, tile.yCoord, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord-1, tile.yCoord, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord+1, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord-1, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord, tile.zCoord+1);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord, tile.zCoord-1);
|
||||
tile.markDirty();
|
||||
}
|
||||
|
||||
public boolean isBoundTileInRage(){
|
||||
if(this.hasBoundTile()){
|
||||
int xDif = this.boundPosition.posX-this.xCoord;
|
||||
|
|
|
@ -45,10 +45,12 @@ public class UpdateChecker{
|
|||
String notice2 = "info."+ModUtil.MOD_ID_LOWER+".update.versionComp.desc";
|
||||
String notice3 = "info."+ModUtil.MOD_ID_LOWER+".update.changelog.desc";
|
||||
String notice4 = "info."+ModUtil.MOD_ID_LOWER+".update.download.desc";
|
||||
player.addChatComponentMessage(new ChatComponentText(""));
|
||||
player.addChatComponentMessage(IChatComponent.Serializer.func_150699_a(StatCollector.translateToLocal(notice1)));
|
||||
player.addChatComponentMessage(IChatComponent.Serializer.func_150699_a(StatCollector.translateToLocalFormatted(notice2, ModUtil.VERSION, onlineVersion)));
|
||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocalFormatted(notice3, changelog)));
|
||||
player.addChatComponentMessage(IChatComponent.Serializer.func_150699_a(StatCollector.translateToLocalFormatted(notice4, "http://minecraft.curseforge.com/mc-mods/228404-actually-additions/files")));
|
||||
player.addChatComponentMessage(new ChatComponentText(""));
|
||||
}
|
||||
}
|
||||
catch(Exception e){
|
||||
|
|
|
@ -46,6 +46,16 @@ public class WorldUtil{
|
|||
}
|
||||
}
|
||||
|
||||
public static void updateTileAndTilesAround(TileEntity tile){
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord+1, tile.yCoord, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord-1, tile.yCoord, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord+1, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord-1, tile.zCoord);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord, tile.zCoord+1);
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord, tile.zCoord-1);
|
||||
tile.markDirty();
|
||||
}
|
||||
|
||||
public static void pushFluid(World world, int x, int y, int z, ForgeDirection side, FluidTank tank){
|
||||
TileEntity tile = getTileEntityFromSide(side, world, x, y, z);
|
||||
if(tile != null && tank.getFluid() != null && tile instanceof IFluidHandler){
|
||||
|
|
|
@ -390,8 +390,8 @@ tooltip.actuallyadditions.blockGrinderDouble.desc.1=Crushes Ores into Dusts!
|
|||
tooltip.actuallyadditions.blockGrinderDouble.desc.2=You get two Dusts per Ore and Extras!
|
||||
tooltip.actuallyadditions.blockGrinderDouble.desc.3=Can crush two Ores simultaneously!
|
||||
tooltip.actuallyadditions.blockFurnaceDouble.desc=Smelts two things simultaneously!
|
||||
tooltip.actuallyadditions.blockInputter.desc.1=Its real name is %sObfuscated%s!
|
||||
tooltip.actuallyadditions.blockInputter.desc.2=Acts like a more advanced Hopper
|
||||
tooltip.actuallyadditions.blockInputter.desc.2=Its real name is %sObfuscated%s!
|
||||
tooltip.actuallyadditions.blockInputter.desc.1=You could call it an extremely advanced Hopper!
|
||||
tooltip.actuallyadditions.blockInputter.desc.3=Turn me off with Redstone!
|
||||
tooltip.actuallyadditions.blockInputter.desc.4=Configurable:
|
||||
tooltip.actuallyadditions.blockInputter.desc.5=-Side to Output to and Input from
|
||||
|
|
Loading…
Reference in a new issue