Package pneumaticCraft.common.network

Source Code of pneumaticCraft.common.network.PacketSecurityStationAddHacker

package pneumaticCraft.common.network;

import net.minecraft.tileentity.TileEntity;
import pneumaticCraft.common.tileentity.TileEntitySecurityStation;

import com.mojang.authlib.GameProfile;

public class PacketSecurityStationAddHacker extends PacketSecurityStation<PacketSecurityStationAddHacker>{

    public PacketSecurityStationAddHacker(){}

    public PacketSecurityStationAddHacker(TileEntity te, String username){
        super(te, username);
    }

    @Override
    protected void handleServerSide(TileEntity te, String profile){
        if(te instanceof TileEntitySecurityStation) {
            ((TileEntitySecurityStation)te).addHacker(new GameProfile(null, profile));
        }
    }
}
TOP

Related Classes of pneumaticCraft.common.network.PacketSecurityStationAddHacker

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.