Package logisticspipes.blocks.crafting

Source Code of logisticspipes.blocks.crafting.FakePlayer

package logisticspipes.blocks.crafting;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.util.IChatComponent;

import com.mojang.authlib.GameProfile;

public class FakePlayer extends EntityPlayer {

  public FakePlayer(TileEntity from) {
    super(from.getWorldObj(), new GameProfile(null, "[LogisticsPipes]"));
    posX = from.xCoord;
    posY = from.yCoord + 1;
    posZ = from.zCoord;
  }
 
  @Override public void addChatMessage(IChatComponent c) {}
  @Override public boolean canCommandSenderUseCommand(int i, String s) {return false;}
  @Override public ChunkCoordinates getPlayerCoordinates() {return null;
}
TOP

Related Classes of logisticspipes.blocks.crafting.FakePlayer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.