Package pneumaticCraft.common.network

Source Code of pneumaticCraft.common.network.PacketSecurityStationAddUser

package pneumaticCraft.common.network;

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

import com.mojang.authlib.GameProfile;

public class PacketSecurityStationAddUser extends PacketSecurityStation<PacketSecurityStationAddUser>{

    public PacketSecurityStationAddUser(){

    }

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

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

}
TOP

Related Classes of pneumaticCraft.common.network.PacketSecurityStationAddUser

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.