Search in sources :

Example 1 with RecipeBook

use of net.minecraft.stats.RecipeBook in project CumServerPro by MCUmbrella.

the class NetHandlerPlayClient method handleRecipeBook.

public void handleRecipeBook(SPacketRecipeBook packetIn) {
    RecipeBook recipebook;
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    recipebook = this.gameController.player.getRecipeBook();
    recipebook.setGuiOpen(packetIn.isGuiOpen());
    recipebook.setFilteringCraftable(packetIn.isFilteringCraftable());
    SPacketRecipeBook.State spacketrecipebook$state = packetIn.getState();
    label21: switch(spacketrecipebook$state) {
        case REMOVE:
            Iterator iterator = packetIn.getRecipes().iterator();
            while (true) {
                if (!iterator.hasNext()) {
                    break label21;
                }
                IRecipe irecipe = (IRecipe) iterator.next();
                recipebook.lock(irecipe);
            }
        case INIT:
            packetIn.getRecipes().forEach(recipebook::unlock);
            packetIn.getDisplayedRecipes().forEach(recipebook::markNew);
            break;
        case ADD:
            packetIn.getRecipes().forEach((p_194025_2_) -> {
                recipebook.unlock(p_194025_2_);
                recipebook.markNew(p_194025_2_);
                RecipeToast.addOrUpdate(this.gameController.getToastGui(), p_194025_2_);
            });
    }
    RecipeBookClient.ALL_RECIPES.forEach((p_194023_1_) -> {
        p_194023_1_.updateKnownRecipes(recipebook);
    });
    if (this.gameController.currentScreen instanceof IRecipeShownListener) {
        ((IRecipeShownListener) this.gameController.currentScreen).recipesUpdated();
    }
}
Also used : SPacketEntityProperties(net.minecraft.network.play.server.SPacketEntityProperties) IProgressMeter(net.minecraft.client.gui.IProgressMeter) ScoreObjective(net.minecraft.scoreboard.ScoreObjective) EntitySpectralArrow(net.minecraft.entity.projectile.EntitySpectralArrow) SPacketMaps(net.minecraft.network.play.server.SPacketMaps) EnumHand(net.minecraft.util.EnumHand) TileEntityEndGateway(net.minecraft.tileentity.TileEntityEndGateway) SPacketMoveVehicle(net.minecraft.network.play.server.SPacketMoveVehicle) I18n(net.minecraft.client.resources.I18n) SPacketBlockChange(net.minecraft.network.play.server.SPacketBlockChange) SPacketWorldBorder(net.minecraft.network.play.server.SPacketWorldBorder) SPacketOpenWindow(net.minecraft.network.play.server.SPacketOpenWindow) GuiDownloadTerrain(net.minecraft.client.gui.GuiDownloadTerrain) WorldSettings(net.minecraft.world.WorldSettings) Side(net.minecraftforge.fml.relauncher.Side) Map(java.util.Map) TileEntitySign(net.minecraft.tileentity.TileEntitySign) GuiMultiplayer(net.minecraft.client.gui.GuiMultiplayer) EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP) IAttributeInstance(net.minecraft.entity.ai.attributes.IAttributeInstance) SPacketRespawn(net.minecraft.network.play.server.SPacketRespawn) DisconnectedRealmsScreen(net.minecraft.realms.DisconnectedRealmsScreen) CPacketClientStatus(net.minecraft.network.play.client.CPacketClientStatus) ISound(net.minecraft.client.audio.ISound) SPacketMultiBlockChange(net.minecraft.network.play.server.SPacketMultiBlockChange) SPacketSpawnGlobalEntity(net.minecraft.network.play.server.SPacketSpawnGlobalEntity) SPacketEntityHeadLook(net.minecraft.network.play.server.SPacketEntityHeadLook) SPacketPlayerPosLook(net.minecraft.network.play.server.SPacketPlayerPosLook) EntityLargeFireball(net.minecraft.entity.projectile.EntityLargeFireball) Logger(org.apache.logging.log4j.Logger) INetHandlerPlayClient(net.minecraft.network.play.INetHandlerPlayClient) SPacketTeams(net.minecraft.network.play.server.SPacketTeams) EntityLlamaSpit(net.minecraft.entity.projectile.EntityLlamaSpit) Container(net.minecraft.inventory.Container) SPacketEffect(net.minecraft.network.play.server.SPacketEffect) EntityEvokerFangs(net.minecraft.entity.projectile.EntityEvokerFangs) TileEntityBanner(net.minecraft.tileentity.TileEntityBanner) GameType(net.minecraft.world.GameType) ContainerLocalMenu(net.minecraft.client.player.inventory.ContainerLocalMenu) SPacketTabComplete(net.minecraft.network.play.server.SPacketTabComplete) PacketThreadUtil(net.minecraft.network.PacketThreadUtil) EntityArrow(net.minecraft.entity.projectile.EntityArrow) SPacketTimeUpdate(net.minecraft.network.play.server.SPacketTimeUpdate) RecipeToast(net.minecraft.client.gui.toasts.RecipeToast) CreativeTabs(net.minecraft.creativetab.CreativeTabs) Chunk(net.minecraft.world.chunk.Chunk) ServerData(net.minecraft.client.multiplayer.ServerData) IRecipe(net.minecraft.item.crafting.IRecipe) DebugRendererPathfinding(net.minecraft.client.renderer.debug.DebugRendererPathfinding) TextFormatting(net.minecraft.util.text.TextFormatting) IOException(java.io.IOException) BlockPos(net.minecraft.util.math.BlockPos) FutureCallback(com.google.common.util.concurrent.FutureCallback) SPacketJoinGame(net.minecraft.network.play.server.SPacketJoinGame) EntityLivingBase(net.minecraft.entity.EntityLivingBase) SPacketEntityStatus(net.minecraft.network.play.server.SPacketEntityStatus) ResourceLocation(net.minecraft.util.ResourceLocation) EntitySmallFireball(net.minecraft.entity.projectile.EntitySmallFireball) SPacketEntityEffect(net.minecraft.network.play.server.SPacketEntityEffect) SPacketHeldItemChange(net.minecraft.network.play.server.SPacketHeldItemChange) SPacketUseBed(net.minecraft.network.play.server.SPacketUseBed) URLDecoder(java.net.URLDecoder) SPacketSoundEffect(net.minecraft.network.play.server.SPacketSoundEffect) WorldProviderSurface(net.minecraft.world.WorldProviderSurface) URISyntaxException(java.net.URISyntaxException) SPacketSelectAdvancementsTab(net.minecraft.network.play.server.SPacketSelectAdvancementsTab) EntityTracker(net.minecraft.entity.EntityTracker) Random(java.util.Random) GuiScreenDemo(net.minecraft.client.gui.GuiScreenDemo) Unpooled(io.netty.buffer.Unpooled) DebugRendererNeighborsUpdate(net.minecraft.client.renderer.debug.DebugRendererNeighborsUpdate) SPacketBlockBreakAnim(net.minecraft.network.play.server.SPacketBlockBreakAnim) EntityLiving(net.minecraft.entity.EntityLiving) SPacketSetSlot(net.minecraft.network.play.server.SPacketSetSlot) SoundCategory(net.minecraft.util.SoundCategory) EntityItem(net.minecraft.entity.item.EntityItem) SPacketEntityVelocity(net.minecraft.network.play.server.SPacketEntityVelocity) Packet(net.minecraft.network.Packet) SPacketWindowProperty(net.minecraft.network.play.server.SPacketWindowProperty) MerchantRecipeList(net.minecraft.village.MerchantRecipeList) RecipeBookClient(net.minecraft.client.util.RecipeBookClient) AbstractAttributeMap(net.minecraft.entity.ai.attributes.AbstractAttributeMap) EntityArmorStand(net.minecraft.entity.item.EntityArmorStand) SPacketCooldown(net.minecraft.network.play.server.SPacketCooldown) Collection(java.util.Collection) SPacketDestroyEntities(net.minecraft.network.play.server.SPacketDestroyEntities) UUID(java.util.UUID) SPacketSpawnExperienceOrb(net.minecraft.network.play.server.SPacketSpawnExperienceOrb) Entry(java.util.Map.Entry) GuiMerchant(net.minecraft.client.gui.GuiMerchant) CPacketPlayer(net.minecraft.network.play.client.CPacketPlayer) ClientBrandRetriever(net.minecraft.client.ClientBrandRetriever) EntityPotion(net.minecraft.entity.projectile.EntityPotion) Scoreboard(net.minecraft.scoreboard.Scoreboard) GuiRecipeBook(net.minecraft.client.gui.recipebook.GuiRecipeBook) Path(net.minecraft.pathfinding.Path) SPacketSpawnPosition(net.minecraft.network.play.server.SPacketSpawnPosition) EntityTippedArrow(net.minecraft.entity.projectile.EntityTippedArrow) NetworkManager(net.minecraft.network.NetworkManager) EntityShulkerBullet(net.minecraft.entity.projectile.EntityShulkerBullet) EntityLeashKnot(net.minecraft.entity.EntityLeashKnot) ITextComponent(net.minecraft.util.text.ITextComponent) EntityXPOrb(net.minecraft.entity.item.EntityXPOrb) SPacketUpdateHealth(net.minecraft.network.play.server.SPacketUpdateHealth) SPacketSetExperience(net.minecraft.network.play.server.SPacketSetExperience) GameSettings(net.minecraft.client.settings.GameSettings) CPacketKeepAlive(net.minecraft.network.play.client.CPacketKeepAlive) IAttribute(net.minecraft.entity.ai.attributes.IAttribute) SoundEvents(net.minecraft.init.SoundEvents) SPacketParticles(net.minecraft.network.play.server.SPacketParticles) IRecipeShownListener(net.minecraft.client.gui.recipebook.IRecipeShownListener) ContainerHorseChest(net.minecraft.inventory.ContainerHorseChest) EntityGuardian(net.minecraft.entity.monster.EntityGuardian) TileEntityShulkerBox(net.minecraft.tileentity.TileEntityShulkerBox) ITabCompleter(net.minecraft.util.ITabCompleter) CPacketConfirmTeleport(net.minecraft.network.play.client.CPacketConfirmTeleport) Consumer(java.util.function.Consumer) CPacketResourcePackStatus(net.minecraft.network.play.client.CPacketResourcePackStatus) GuiScreen(net.minecraft.client.gui.GuiScreen) EntityEnderEye(net.minecraft.entity.item.EntityEnderEye) EntityAreaEffectCloud(net.minecraft.entity.EntityAreaEffectCloud) RangedAttribute(net.minecraft.entity.ai.attributes.RangedAttribute) EntitySnowball(net.minecraft.entity.projectile.EntitySnowball) LogManager(org.apache.logging.log4j.LogManager) SPacketCamera(net.minecraft.network.play.server.SPacketCamera) Arrays(java.util.Arrays) IScoreCriteria(net.minecraft.scoreboard.IScoreCriteria) GuiContainerCreative(net.minecraft.client.gui.inventory.GuiContainerCreative) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity) Explosion(net.minecraft.world.Explosion) SPacketEntityMetadata(net.minecraft.network.play.server.SPacketEntityMetadata) GameProfile(com.mojang.authlib.GameProfile) SPacketPlaceGhostRecipe(net.minecraft.network.play.server.SPacketPlaceGhostRecipe) EntityFallingBlock(net.minecraft.entity.item.EntityFallingBlock) SPacketCollectItem(net.minecraft.network.play.server.SPacketCollectItem) GuiMainMenu(net.minecraft.client.gui.GuiMainMenu) ClientAdvancementManager(net.minecraft.client.multiplayer.ClientAdvancementManager) TextComponentTranslation(net.minecraft.util.text.TextComponentTranslation) EntityDragonFireball(net.minecraft.entity.projectile.EntityDragonFireball) TileEntityStructure(net.minecraft.tileentity.TileEntityStructure) Block(net.minecraft.block.Block) SPacketAnimation(net.minecraft.network.play.server.SPacketAnimation) EntityTNTPrimed(net.minecraft.entity.item.EntityTNTPrimed) SPacketSpawnObject(net.minecraft.network.play.server.SPacketSpawnObject) Team(net.minecraft.scoreboard.Team) SPacketServerDifficulty(net.minecraft.network.play.server.SPacketServerDifficulty) EntityList(net.minecraft.entity.EntityList) SPacketPlayerListItem(net.minecraft.network.play.server.SPacketPlayerListItem) StatBase(net.minecraft.stats.StatBase) SPacketEntityAttach(net.minecraft.network.play.server.SPacketEntityAttach) RecipeBook(net.minecraft.stats.RecipeBook) StandardCharsets(java.nio.charset.StandardCharsets) SPacketCustomPayload(net.minecraft.network.play.server.SPacketCustomPayload) SPacketChunkData(net.minecraft.network.play.server.SPacketChunkData) SPacketDisconnect(net.minecraft.network.play.server.SPacketDisconnect) EnumParticleTypes(net.minecraft.util.EnumParticleTypes) Potion(net.minecraft.potion.Potion) MapData(net.minecraft.world.storage.MapData) SPacketCustomSound(net.minecraft.network.play.server.SPacketCustomSound) EntityFishHook(net.minecraft.entity.projectile.EntityFishHook) SPacketRecipeBook(net.minecraft.network.play.server.SPacketRecipeBook) SPacketCombatEvent(net.minecraft.network.play.server.SPacketCombatEvent) SPacketSpawnMob(net.minecraft.network.play.server.SPacketSpawnMob) EntityPainting(net.minecraft.entity.item.EntityPainting) SPacketEntityTeleport(net.minecraft.network.play.server.SPacketEntityTeleport) GuiYesNo(net.minecraft.client.gui.GuiYesNo) WorldClient(net.minecraft.client.multiplayer.WorldClient) TileEntityFlowerPot(net.minecraft.tileentity.TileEntityFlowerPot) SPacketSpawnPainting(net.minecraft.network.play.server.SPacketSpawnPainting) ItemStack(net.minecraft.item.ItemStack) PotionEffect(net.minecraft.potion.PotionEffect) SPacketExplosion(net.minecraft.network.play.server.SPacketExplosion) Score(net.minecraft.scoreboard.Score) CPacketConfirmTransaction(net.minecraft.network.play.client.CPacketConfirmTransaction) SPacketWindowItems(net.minecraft.network.play.server.SPacketWindowItems) TileEntityBeacon(net.minecraft.tileentity.TileEntityBeacon) TileEntityMobSpawner(net.minecraft.tileentity.TileEntityMobSpawner) Nullable(javax.annotation.Nullable) EntityEgg(net.minecraft.entity.projectile.EntityEgg) GuiCommandBlock(net.minecraft.client.gui.GuiCommandBlock) Items(net.minecraft.init.Items) GuiGameOver(net.minecraft.client.gui.GuiGameOver) File(java.io.File) GuardianSound(net.minecraft.client.audio.GuardianSound) EntityExpBottle(net.minecraft.entity.item.EntityExpBottle) EntityBoat(net.minecraft.entity.item.EntityBoat) Futures(com.google.common.util.concurrent.Futures) SPacketChangeGameState(net.minecraft.network.play.server.SPacketChangeGameState) ServerList(net.minecraft.client.multiplayer.ServerList) StringUtils(net.minecraft.util.StringUtils) MapItemRenderer(net.minecraft.client.gui.MapItemRenderer) GuiDisconnected(net.minecraft.client.gui.GuiDisconnected) MathHelper(net.minecraft.util.math.MathHelper) SPacketStatistics(net.minecraft.network.play.server.SPacketStatistics) TileEntity(net.minecraft.tileentity.TileEntity) GuiScreenBook(net.minecraft.client.gui.GuiScreenBook) EntityItemFrame(net.minecraft.entity.item.EntityItemFrame) EntityWitherSkull(net.minecraft.entity.projectile.EntityWitherSkull) SPacketDisplayObjective(net.minecraft.network.play.server.SPacketDisplayObjective) LocalBlockIntercommunication(net.minecraft.client.player.inventory.LocalBlockIntercommunication) EntityFireworkRocket(net.minecraft.entity.item.EntityFireworkRocket) GuiScreenRealmsProxy(net.minecraft.client.gui.GuiScreenRealmsProxy) SPacketEntity(net.minecraft.network.play.server.SPacketEntity) URI(java.net.URI) SPacketUpdateBossInfo(net.minecraft.network.play.server.SPacketUpdateBossInfo) SPacketEntityEquipment(net.minecraft.network.play.server.SPacketEntityEquipment) ScorePlayerTeam(net.minecraft.scoreboard.ScorePlayerTeam) IMerchant(net.minecraft.entity.IMerchant) NBTTagCompound(net.minecraft.nbt.NBTTagCompound) ParticleItemPickup(net.minecraft.client.particle.ParticleItemPickup) AttributeModifier(net.minecraft.entity.ai.attributes.AttributeModifier) EntityMinecart(net.minecraft.entity.item.EntityMinecart) SPacketScoreboardObjective(net.minecraft.network.play.server.SPacketScoreboardObjective) NpcMerchant(net.minecraft.entity.NpcMerchant) SPacketCloseWindow(net.minecraft.network.play.server.SPacketCloseWindow) TileEntityCommandBlock(net.minecraft.tileentity.TileEntityCommandBlock) List(java.util.List) InventoryBasic(net.minecraft.inventory.InventoryBasic) TileEntityBed(net.minecraft.tileentity.TileEntityBed) EntityLightningBolt(net.minecraft.entity.effect.EntityLightningBolt) EntityPlayer(net.minecraft.entity.player.EntityPlayer) SPacketUnloadChunk(net.minecraft.network.play.server.SPacketUnloadChunk) SPacketSignEditorOpen(net.minecraft.network.play.server.SPacketSignEditorOpen) UnsupportedEncodingException(java.io.UnsupportedEncodingException) EntityDataManager(net.minecraft.network.datasync.EntityDataManager) SPacketKeepAlive(net.minecraft.network.play.server.SPacketKeepAlive) AbstractHorse(net.minecraft.entity.passive.AbstractHorse) EntityEnderCrystal(net.minecraft.entity.item.EntityEnderCrystal) SPacketUpdateScore(net.minecraft.network.play.server.SPacketUpdateScore) SPacketResourcePackSend(net.minecraft.network.play.server.SPacketResourcePackSend) PositionedSoundRecord(net.minecraft.client.audio.PositionedSoundRecord) SPacketAdvancementInfo(net.minecraft.network.play.server.SPacketAdvancementInfo) TileEntitySkull(net.minecraft.tileentity.TileEntitySkull) EntityEnderPearl(net.minecraft.entity.item.EntityEnderPearl) SPacketChat(net.minecraft.network.play.server.SPacketChat) Minecraft(net.minecraft.client.Minecraft) ItemMap(net.minecraft.item.ItemMap) SPacketSetPassengers(net.minecraft.network.play.server.SPacketSetPassengers) GuiYesNoCallback(net.minecraft.client.gui.GuiYesNoCallback) SPacketRemoveEntityEffect(net.minecraft.network.play.server.SPacketRemoveEntityEffect) CPacketVehicleMove(net.minecraft.network.play.client.CPacketVehicleMove) SideOnly(net.minecraftforge.fml.relauncher.SideOnly) Entity(net.minecraft.entity.Entity) SPacketTitle(net.minecraft.network.play.server.SPacketTitle) Iterator(java.util.Iterator) SPacketBlockAction(net.minecraft.network.play.server.SPacketBlockAction) SPacketPlayerAbilities(net.minecraft.network.play.server.SPacketPlayerAbilities) PlayerControllerMP(net.minecraft.client.multiplayer.PlayerControllerMP) Advancement(net.minecraft.advancements.Advancement) SPacketPlayerListHeaderFooter(net.minecraft.network.play.server.SPacketPlayerListHeaderFooter) EnumFacing(net.minecraft.util.EnumFacing) InventoryPlayer(net.minecraft.entity.player.InventoryPlayer) Maps(com.google.common.collect.Maps) SPacketConfirmTransaction(net.minecraft.network.play.server.SPacketConfirmTransaction) IInventory(net.minecraft.inventory.IInventory) GuiWinGame(net.minecraft.client.gui.GuiWinGame) CPacketCustomPayload(net.minecraft.network.play.client.CPacketCustomPayload) EntityOtherPlayerMP(net.minecraft.client.entity.EntityOtherPlayerMP) SPacketSpawnPlayer(net.minecraft.network.play.server.SPacketSpawnPlayer) PacketBuffer(net.minecraft.network.PacketBuffer) GuiRecipeBook(net.minecraft.client.gui.recipebook.GuiRecipeBook) RecipeBook(net.minecraft.stats.RecipeBook) SPacketRecipeBook(net.minecraft.network.play.server.SPacketRecipeBook) SPacketRecipeBook(net.minecraft.network.play.server.SPacketRecipeBook) IRecipeShownListener(net.minecraft.client.gui.recipebook.IRecipeShownListener) IRecipe(net.minecraft.item.crafting.IRecipe) Iterator(java.util.Iterator)

Example 2 with RecipeBook

use of net.minecraft.stats.RecipeBook in project Minecraft-SlientClient-Hack by YouNeverKnow00.

the class Minecraft method setDimensionAndSpawnPlayer.

public void setDimensionAndSpawnPlayer(int dimension) {
    this.world.setInitialSpawnLocation();
    this.world.removeAllEntities();
    int i = 0;
    String s = null;
    if (this.player != null) {
        i = this.player.getEntityId();
        this.world.removeEntity(this.player);
        s = this.player.getServerBrand();
    }
    this.renderViewEntity = null;
    EntityPlayerSP entityplayersp = this.player;
    this.player = this.playerController.func_192830_a(this.world, this.player == null ? new StatisticsManager() : this.player.getStatFileWriter(), this.player == null ? new RecipeBook() : this.player.func_192035_E());
    this.player.getDataManager().setEntryValues(entityplayersp.getDataManager().getAll());
    this.player.dimension = dimension;
    this.renderViewEntity = this.player;
    this.player.preparePlayerToSpawn();
    this.player.setServerBrand(s);
    this.world.spawnEntityInWorld(this.player);
    this.playerController.flipPlayer(this.player);
    this.player.movementInput = new MovementInputFromOptions(this.gameSettings);
    this.player.setEntityId(i);
    this.playerController.setPlayerCapabilities(this.player);
    this.player.setReducedDebug(entityplayersp.hasReducedDebug());
    if (this.currentScreen instanceof GuiGameOver) {
        this.displayGuiScreen((GuiScreen) null);
    }
}
Also used : RecipeBook(net.minecraft.stats.RecipeBook) StatisticsManager(net.minecraft.stats.StatisticsManager) GuiGameOver(net.minecraft.client.gui.GuiGameOver) MovementInputFromOptions(net.minecraft.util.MovementInputFromOptions) TextComponentString(net.minecraft.util.text.TextComponentString) NBTTagString(net.minecraft.nbt.NBTTagString) EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP)

Example 3 with RecipeBook

use of net.minecraft.stats.RecipeBook in project minecolonies by Minecolonies.

the class PrivateCraftingTeachingTransferHandler method transferRecipe.

@Nullable
@Override
public IRecipeTransferError transferRecipe(final CraftingGUIBuilding craftingGUIBuilding, final IRecipeLayout recipeLayout, final EntityPlayer entityPlayer, final boolean b, final boolean b1) {
    final IGuiItemStackGroup itemStackGroup = recipeLayout.getItemStacks();
    // indexes that do not fit into the player crafting grid
    final Set<Integer> badIndexes = ImmutableSet.of(2, 5, 6, 7, 8);
    // compact the crafting grid into a 2x2 area
    final Map<Integer, ItemStack> guiIngredients = new HashMap<>();
    guiIngredients.put(0, ItemStackUtils.EMPTY);
    guiIngredients.put(1, ItemStackUtils.EMPTY);
    guiIngredients.put(3, ItemStackUtils.EMPTY);
    guiIngredients.put(4, ItemStackUtils.EMPTY);
    int inputIndex = 0;
    for (final IGuiIngredient<ItemStack> ingredient : itemStackGroup.getGuiIngredients().values()) {
        if (ingredient.isInput()) {
            if (!ingredient.getAllIngredients().isEmpty()) {
                if (badIndexes.contains(inputIndex)) {
                    final String tooltipMessage = I18n.translateToLocal("jei.tooltip.error.recipe.transfer.too.large.player.inventory");
                    return handlerHelper.createUserErrorForSlots(tooltipMessage, badIndexes);
                }
                guiIngredients.put(inputIndex, ingredient.getDisplayedIngredient());
            }
            inputIndex++;
        }
    }
    final InventoryCrafting craftMatrix = new InventoryCrafting(new Container() {

        @Override
        public boolean canInteractWith(final EntityPlayer entityPlayer) {
            return false;
        }
    }, 2, 2);
    craftMatrix.setInventorySlotContents(0, guiIngredients.get(0));
    craftMatrix.setInventorySlotContents(1, guiIngredients.get(1));
    craftMatrix.setInventorySlotContents(2, guiIngredients.get(3));
    craftMatrix.setInventorySlotContents(3, guiIngredients.get(4));
    final IRecipe recipe = CraftingManager.findMatchingRecipe(craftMatrix, craftingGUIBuilding.getWorldObj());
    if (recipe == null) {
        return handlerHelper.createInternalError();
    }
    final RecipeBook book = MineColonies.proxy.getRecipeBookFromPlayer(entityPlayer);
    if (craftingGUIBuilding.getWorldObj().getGameRules().getBoolean("doLimitedCrafting") && !craftingGUIBuilding.getPlayer().isCreative() && !book.isUnlocked(recipe)) {
        final String tooltipMessage = I18n.translateToLocal(TranslationConstants.COM_MINECOLONIES_COREMOD_COMPAT_JEI_CRAFTIN_TEACHING_UNKNOWN_RECIPE);
        return handlerHelper.createUserErrorWithTooltip(tooltipMessage);
    }
    if (b1) {
        final TransferRecipeCrafingTeachingMessage message = new TransferRecipeCrafingTeachingMessage(guiIngredients);
        MineColonies.getNetwork().sendToServer(message);
    }
    return null;
}
Also used : RecipeBook(net.minecraft.stats.RecipeBook) TransferRecipeCrafingTeachingMessage(com.minecolonies.coremod.network.messages.TransferRecipeCrafingTeachingMessage) IRecipe(net.minecraft.item.crafting.IRecipe) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) InventoryCrafting(net.minecraft.inventory.InventoryCrafting) Container(net.minecraft.inventory.Container) EntityPlayer(net.minecraft.entity.player.EntityPlayer) ItemStack(net.minecraft.item.ItemStack) Nullable(javax.annotation.Nullable)

Example 4 with RecipeBook

use of net.minecraft.stats.RecipeBook in project ElementalSorcery by Yuzunyannn.

the class ContainerSupremeTable method slotChangedCraftingGrid.

// 原版配方混合
@Override
protected void slotChangedCraftingGrid(World world, EntityPlayer player, InventoryCrafting craftMatrix, InventoryCraftResult craftResult) {
    for (int i = 9; i < craftMatrix.getSizeInventory(); i++) if (!craftMatrix.getStackInSlot(i).isEmpty()) {
        craftResult.setInventorySlotContents(0, ItemStack.EMPTY);
        return;
    }
    ItemStack itemstack = ItemStack.EMPTY;
    IRecipe irecipe = CraftingManager.findMatchingRecipe(craftMatrix, world);
    RecipeBook book = world.isRemote ? ((EntityPlayerSP) player).getRecipeBook() : ((EntityPlayerMP) player).getRecipeBook();
    if (irecipe != null && (!world.getGameRules().getBoolean("doLimitedCrafting") || book.isUnlocked(irecipe))) {
        craftResult.setRecipeUsed(irecipe);
        itemstack = irecipe.getCraftingResult(craftMatrix);
    }
    craftResult.setInventorySlotContents(0, itemstack);
}
Also used : RecipeBook(net.minecraft.stats.RecipeBook) IRecipe(net.minecraft.item.crafting.IRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 5 with RecipeBook

use of net.minecraft.stats.RecipeBook in project Minecraft-SlientClient-Hack by YouNeverKnow00.

the class NetHandlerPlayClient method func_191980_a.

public void func_191980_a(SPacketRecipeBook p_191980_1_) {
    RecipeBook recipebook;
    PacketThreadUtil.checkThreadAndEnqueue(p_191980_1_, this, this.gameController);
    recipebook = this.gameController.player.func_192035_E();
    recipebook.func_192813_a(p_191980_1_.func_192593_c());
    recipebook.func_192810_b(p_191980_1_.func_192594_d());
    SPacketRecipeBook.State spacketrecipebook$state = p_191980_1_.func_194151_e();
    label21: switch(spacketrecipebook$state) {
        case REMOVE:
            Iterator iterator = p_191980_1_.func_192595_a().iterator();
            while (true) {
                if (!iterator.hasNext()) {
                    break label21;
                }
                IRecipe irecipe = (IRecipe) iterator.next();
                recipebook.func_193831_b(irecipe);
            }
        case INIT:
            p_191980_1_.func_192595_a().forEach(recipebook::func_194073_a);
            p_191980_1_.func_193644_b().forEach(recipebook::func_193825_e);
            break;
        case ADD:
            p_191980_1_.func_192595_a().forEach((p_194025_2_) -> {
                recipebook.func_194073_a(p_194025_2_);
                recipebook.func_193825_e(p_194025_2_);
                RecipeToast.func_193665_a(this.gameController.func_193033_an(), p_194025_2_);
            });
    }
    RecipeBookClient.field_194087_f.forEach((p_194023_1_) -> {
        p_194023_1_.func_194214_a(recipebook);
    });
    if (this.gameController.currentScreen instanceof IRecipeShownListener) {
        ((IRecipeShownListener) this.gameController.currentScreen).func_192043_J_();
    }
}
Also used : SPacketEntityProperties(net.minecraft.network.play.server.SPacketEntityProperties) IProgressMeter(net.minecraft.client.gui.IProgressMeter) ScoreObjective(net.minecraft.scoreboard.ScoreObjective) EntitySpectralArrow(net.minecraft.entity.projectile.EntitySpectralArrow) SPacketMaps(net.minecraft.network.play.server.SPacketMaps) EnumHand(net.minecraft.util.EnumHand) TileEntityEndGateway(net.minecraft.tileentity.TileEntityEndGateway) SPacketMoveVehicle(net.minecraft.network.play.server.SPacketMoveVehicle) I18n(net.minecraft.client.resources.I18n) SPacketBlockChange(net.minecraft.network.play.server.SPacketBlockChange) SPacketWorldBorder(net.minecraft.network.play.server.SPacketWorldBorder) SPacketOpenWindow(net.minecraft.network.play.server.SPacketOpenWindow) GuiDownloadTerrain(net.minecraft.client.gui.GuiDownloadTerrain) WorldSettings(net.minecraft.world.WorldSettings) Map(java.util.Map) TileEntitySign(net.minecraft.tileentity.TileEntitySign) GuiMultiplayer(net.minecraft.client.gui.GuiMultiplayer) EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP) IAttributeInstance(net.minecraft.entity.ai.attributes.IAttributeInstance) SPacketRespawn(net.minecraft.network.play.server.SPacketRespawn) DisconnectedRealmsScreen(net.minecraft.realms.DisconnectedRealmsScreen) CPacketClientStatus(net.minecraft.network.play.client.CPacketClientStatus) ISound(net.minecraft.client.audio.ISound) SPacketMultiBlockChange(net.minecraft.network.play.server.SPacketMultiBlockChange) SPacketSpawnGlobalEntity(net.minecraft.network.play.server.SPacketSpawnGlobalEntity) SPacketEntityHeadLook(net.minecraft.network.play.server.SPacketEntityHeadLook) SPacketPlayerPosLook(net.minecraft.network.play.server.SPacketPlayerPosLook) EntityLargeFireball(net.minecraft.entity.projectile.EntityLargeFireball) Logger(org.apache.logging.log4j.Logger) INetHandlerPlayClient(net.minecraft.network.play.INetHandlerPlayClient) SPacketTeams(net.minecraft.network.play.server.SPacketTeams) EntityLlamaSpit(net.minecraft.entity.projectile.EntityLlamaSpit) Container(net.minecraft.inventory.Container) Values(slientclient.main.Values) SPacketEffect(net.minecraft.network.play.server.SPacketEffect) EntityEvokerFangs(net.minecraft.entity.projectile.EntityEvokerFangs) TileEntityBanner(net.minecraft.tileentity.TileEntityBanner) GameType(net.minecraft.world.GameType) ContainerLocalMenu(net.minecraft.client.player.inventory.ContainerLocalMenu) SPacketTabComplete(net.minecraft.network.play.server.SPacketTabComplete) PacketThreadUtil(net.minecraft.network.PacketThreadUtil) EntityArrow(net.minecraft.entity.projectile.EntityArrow) SPacketTimeUpdate(net.minecraft.network.play.server.SPacketTimeUpdate) RecipeToast(net.minecraft.client.gui.toasts.RecipeToast) CreativeTabs(net.minecraft.creativetab.CreativeTabs) Chunk(net.minecraft.world.chunk.Chunk) ServerData(net.minecraft.client.multiplayer.ServerData) IRecipe(net.minecraft.item.crafting.IRecipe) DebugRendererPathfinding(net.minecraft.client.renderer.debug.DebugRendererPathfinding) TextFormatting(net.minecraft.util.text.TextFormatting) IOException(java.io.IOException) BlockPos(net.minecraft.util.math.BlockPos) FutureCallback(com.google.common.util.concurrent.FutureCallback) SPacketJoinGame(net.minecraft.network.play.server.SPacketJoinGame) EntityLivingBase(net.minecraft.entity.EntityLivingBase) SPacketEntityStatus(net.minecraft.network.play.server.SPacketEntityStatus) ResourceLocation(net.minecraft.util.ResourceLocation) EntitySmallFireball(net.minecraft.entity.projectile.EntitySmallFireball) SPacketEntityEffect(net.minecraft.network.play.server.SPacketEntityEffect) SPacketHeldItemChange(net.minecraft.network.play.server.SPacketHeldItemChange) SPacketUseBed(net.minecraft.network.play.server.SPacketUseBed) URLDecoder(java.net.URLDecoder) SPacketSoundEffect(net.minecraft.network.play.server.SPacketSoundEffect) WorldProviderSurface(net.minecraft.world.WorldProviderSurface) URISyntaxException(java.net.URISyntaxException) SPacketSelectAdvancementsTab(net.minecraft.network.play.server.SPacketSelectAdvancementsTab) EntityTracker(net.minecraft.entity.EntityTracker) Random(java.util.Random) GuiScreenDemo(net.minecraft.client.gui.GuiScreenDemo) Unpooled(io.netty.buffer.Unpooled) DebugRendererNeighborsUpdate(net.minecraft.client.renderer.debug.DebugRendererNeighborsUpdate) SPacketBlockBreakAnim(net.minecraft.network.play.server.SPacketBlockBreakAnim) EntityLiving(net.minecraft.entity.EntityLiving) SPacketSetSlot(net.minecraft.network.play.server.SPacketSetSlot) SoundCategory(net.minecraft.util.SoundCategory) EntityItem(net.minecraft.entity.item.EntityItem) SPacketEntityVelocity(net.minecraft.network.play.server.SPacketEntityVelocity) Packet(net.minecraft.network.Packet) SPacketWindowProperty(net.minecraft.network.play.server.SPacketWindowProperty) MerchantRecipeList(net.minecraft.village.MerchantRecipeList) RecipeBookClient(net.minecraft.client.util.RecipeBookClient) AbstractAttributeMap(net.minecraft.entity.ai.attributes.AbstractAttributeMap) EntityArmorStand(net.minecraft.entity.item.EntityArmorStand) SPacketCooldown(net.minecraft.network.play.server.SPacketCooldown) Collection(java.util.Collection) SPacketDestroyEntities(net.minecraft.network.play.server.SPacketDestroyEntities) UUID(java.util.UUID) SPacketSpawnExperienceOrb(net.minecraft.network.play.server.SPacketSpawnExperienceOrb) Entry(java.util.Map.Entry) GuiMerchant(net.minecraft.client.gui.GuiMerchant) CPacketPlayer(net.minecraft.network.play.client.CPacketPlayer) ClientBrandRetriever(net.minecraft.client.ClientBrandRetriever) EntityPotion(net.minecraft.entity.projectile.EntityPotion) Scoreboard(net.minecraft.scoreboard.Scoreboard) GuiRecipeBook(net.minecraft.client.gui.recipebook.GuiRecipeBook) Slient(slientclient.main.Slient) Path(net.minecraft.pathfinding.Path) SPacketSpawnPosition(net.minecraft.network.play.server.SPacketSpawnPosition) EntityTippedArrow(net.minecraft.entity.projectile.EntityTippedArrow) NetworkManager(net.minecraft.network.NetworkManager) EntityShulkerBullet(net.minecraft.entity.projectile.EntityShulkerBullet) EntityLeashKnot(net.minecraft.entity.EntityLeashKnot) ITextComponent(net.minecraft.util.text.ITextComponent) EntityXPOrb(net.minecraft.entity.item.EntityXPOrb) SPacketUpdateHealth(net.minecraft.network.play.server.SPacketUpdateHealth) SPacketSetExperience(net.minecraft.network.play.server.SPacketSetExperience) GameSettings(net.minecraft.client.settings.GameSettings) CPacketKeepAlive(net.minecraft.network.play.client.CPacketKeepAlive) IAttribute(net.minecraft.entity.ai.attributes.IAttribute) SoundEvents(net.minecraft.init.SoundEvents) SPacketParticles(net.minecraft.network.play.server.SPacketParticles) IRecipeShownListener(net.minecraft.client.gui.recipebook.IRecipeShownListener) ContainerHorseChest(net.minecraft.inventory.ContainerHorseChest) EntityGuardian(net.minecraft.entity.monster.EntityGuardian) TileEntityShulkerBox(net.minecraft.tileentity.TileEntityShulkerBox) ITabCompleter(net.minecraft.util.ITabCompleter) CPacketConfirmTeleport(net.minecraft.network.play.client.CPacketConfirmTeleport) Consumer(java.util.function.Consumer) CPacketResourcePackStatus(net.minecraft.network.play.client.CPacketResourcePackStatus) GuiScreen(net.minecraft.client.gui.GuiScreen) EntityEnderEye(net.minecraft.entity.item.EntityEnderEye) EntityAreaEffectCloud(net.minecraft.entity.EntityAreaEffectCloud) RangedAttribute(net.minecraft.entity.ai.attributes.RangedAttribute) EntitySnowball(net.minecraft.entity.projectile.EntitySnowball) LogManager(org.apache.logging.log4j.LogManager) SPacketCamera(net.minecraft.network.play.server.SPacketCamera) Arrays(java.util.Arrays) IScoreCriteria(net.minecraft.scoreboard.IScoreCriteria) GuiContainerCreative(net.minecraft.client.gui.inventory.GuiContainerCreative) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity) Explosion(net.minecraft.world.Explosion) SPacketEntityMetadata(net.minecraft.network.play.server.SPacketEntityMetadata) GameProfile(com.mojang.authlib.GameProfile) SPacketPlaceGhostRecipe(net.minecraft.network.play.server.SPacketPlaceGhostRecipe) Module(slientclient.mods.Module) EntityFallingBlock(net.minecraft.entity.item.EntityFallingBlock) SPacketCollectItem(net.minecraft.network.play.server.SPacketCollectItem) GuiMainMenu(net.minecraft.client.gui.GuiMainMenu) ClientAdvancementManager(net.minecraft.client.multiplayer.ClientAdvancementManager) TextComponentTranslation(net.minecraft.util.text.TextComponentTranslation) EntityDragonFireball(net.minecraft.entity.projectile.EntityDragonFireball) TileEntityStructure(net.minecraft.tileentity.TileEntityStructure) Block(net.minecraft.block.Block) SPacketAnimation(net.minecraft.network.play.server.SPacketAnimation) EntityTNTPrimed(net.minecraft.entity.item.EntityTNTPrimed) SPacketSpawnObject(net.minecraft.network.play.server.SPacketSpawnObject) Team(net.minecraft.scoreboard.Team) SPacketServerDifficulty(net.minecraft.network.play.server.SPacketServerDifficulty) EntityList(net.minecraft.entity.EntityList) SPacketPlayerListItem(net.minecraft.network.play.server.SPacketPlayerListItem) StatBase(net.minecraft.stats.StatBase) SPacketEntityAttach(net.minecraft.network.play.server.SPacketEntityAttach) RecipeBook(net.minecraft.stats.RecipeBook) StandardCharsets(java.nio.charset.StandardCharsets) SPacketCustomPayload(net.minecraft.network.play.server.SPacketCustomPayload) SPacketChunkData(net.minecraft.network.play.server.SPacketChunkData) SPacketDisconnect(net.minecraft.network.play.server.SPacketDisconnect) EnumParticleTypes(net.minecraft.util.EnumParticleTypes) Potion(net.minecraft.potion.Potion) MapData(net.minecraft.world.storage.MapData) SPacketCustomSound(net.minecraft.network.play.server.SPacketCustomSound) EntityFishHook(net.minecraft.entity.projectile.EntityFishHook) SPacketRecipeBook(net.minecraft.network.play.server.SPacketRecipeBook) SPacketCombatEvent(net.minecraft.network.play.server.SPacketCombatEvent) SPacketSpawnMob(net.minecraft.network.play.server.SPacketSpawnMob) EntityPainting(net.minecraft.entity.item.EntityPainting) SPacketEntityTeleport(net.minecraft.network.play.server.SPacketEntityTeleport) GuiYesNo(net.minecraft.client.gui.GuiYesNo) WorldClient(net.minecraft.client.multiplayer.WorldClient) TileEntityFlowerPot(net.minecraft.tileentity.TileEntityFlowerPot) SPacketSpawnPainting(net.minecraft.network.play.server.SPacketSpawnPainting) ItemStack(net.minecraft.item.ItemStack) PotionEffect(net.minecraft.potion.PotionEffect) SPacketExplosion(net.minecraft.network.play.server.SPacketExplosion) Score(net.minecraft.scoreboard.Score) CPacketConfirmTransaction(net.minecraft.network.play.client.CPacketConfirmTransaction) SPacketWindowItems(net.minecraft.network.play.server.SPacketWindowItems) TileEntityBeacon(net.minecraft.tileentity.TileEntityBeacon) TileEntityMobSpawner(net.minecraft.tileentity.TileEntityMobSpawner) Nullable(javax.annotation.Nullable) EntityEgg(net.minecraft.entity.projectile.EntityEgg) GuiCommandBlock(net.minecraft.client.gui.GuiCommandBlock) Items(net.minecraft.init.Items) GuiGameOver(net.minecraft.client.gui.GuiGameOver) File(java.io.File) GuardianSound(net.minecraft.client.audio.GuardianSound) EntityExpBottle(net.minecraft.entity.item.EntityExpBottle) PacketSent(slientclient.event.PacketSent) EntityBoat(net.minecraft.entity.item.EntityBoat) Futures(com.google.common.util.concurrent.Futures) SPacketChangeGameState(net.minecraft.network.play.server.SPacketChangeGameState) ServerList(net.minecraft.client.multiplayer.ServerList) StringUtils(net.minecraft.util.StringUtils) MapItemRenderer(net.minecraft.client.gui.MapItemRenderer) GuiDisconnected(net.minecraft.client.gui.GuiDisconnected) MathHelper(net.minecraft.util.math.MathHelper) SPacketStatistics(net.minecraft.network.play.server.SPacketStatistics) TileEntity(net.minecraft.tileentity.TileEntity) GuiScreenBook(net.minecraft.client.gui.GuiScreenBook) EntityItemFrame(net.minecraft.entity.item.EntityItemFrame) EntityWitherSkull(net.minecraft.entity.projectile.EntityWitherSkull) SPacketDisplayObjective(net.minecraft.network.play.server.SPacketDisplayObjective) LocalBlockIntercommunication(net.minecraft.client.player.inventory.LocalBlockIntercommunication) EntityFireworkRocket(net.minecraft.entity.item.EntityFireworkRocket) GuiScreenRealmsProxy(net.minecraft.client.gui.GuiScreenRealmsProxy) SPacketEntity(net.minecraft.network.play.server.SPacketEntity) URI(java.net.URI) SPacketUpdateBossInfo(net.minecraft.network.play.server.SPacketUpdateBossInfo) SPacketEntityEquipment(net.minecraft.network.play.server.SPacketEntityEquipment) ScorePlayerTeam(net.minecraft.scoreboard.ScorePlayerTeam) IMerchant(net.minecraft.entity.IMerchant) NBTTagCompound(net.minecraft.nbt.NBTTagCompound) ParticleItemPickup(net.minecraft.client.particle.ParticleItemPickup) AttributeModifier(net.minecraft.entity.ai.attributes.AttributeModifier) EntityMinecart(net.minecraft.entity.item.EntityMinecart) SPacketScoreboardObjective(net.minecraft.network.play.server.SPacketScoreboardObjective) NpcMerchant(net.minecraft.entity.NpcMerchant) SPacketCloseWindow(net.minecraft.network.play.server.SPacketCloseWindow) TileEntityCommandBlock(net.minecraft.tileentity.TileEntityCommandBlock) List(java.util.List) InventoryBasic(net.minecraft.inventory.InventoryBasic) TileEntityBed(net.minecraft.tileentity.TileEntityBed) EntityLightningBolt(net.minecraft.entity.effect.EntityLightningBolt) EntityPlayer(net.minecraft.entity.player.EntityPlayer) SPacketUnloadChunk(net.minecraft.network.play.server.SPacketUnloadChunk) SPacketSignEditorOpen(net.minecraft.network.play.server.SPacketSignEditorOpen) UnsupportedEncodingException(java.io.UnsupportedEncodingException) EntityDataManager(net.minecraft.network.datasync.EntityDataManager) SPacketKeepAlive(net.minecraft.network.play.server.SPacketKeepAlive) AbstractHorse(net.minecraft.entity.passive.AbstractHorse) EntityEnderCrystal(net.minecraft.entity.item.EntityEnderCrystal) SPacketUpdateScore(net.minecraft.network.play.server.SPacketUpdateScore) SPacketResourcePackSend(net.minecraft.network.play.server.SPacketResourcePackSend) PositionedSoundRecord(net.minecraft.client.audio.PositionedSoundRecord) SPacketAdvancementInfo(net.minecraft.network.play.server.SPacketAdvancementInfo) TileEntitySkull(net.minecraft.tileentity.TileEntitySkull) EventManager(slientclient.event.EventManager) EntityEnderPearl(net.minecraft.entity.item.EntityEnderPearl) SPacketChat(net.minecraft.network.play.server.SPacketChat) Minecraft(net.minecraft.client.Minecraft) ItemMap(net.minecraft.item.ItemMap) SPacketSetPassengers(net.minecraft.network.play.server.SPacketSetPassengers) GuiYesNoCallback(net.minecraft.client.gui.GuiYesNoCallback) SPacketRemoveEntityEffect(net.minecraft.network.play.server.SPacketRemoveEntityEffect) CPacketVehicleMove(net.minecraft.network.play.client.CPacketVehicleMove) Entity(net.minecraft.entity.Entity) SPacketTitle(net.minecraft.network.play.server.SPacketTitle) Iterator(java.util.Iterator) SPacketBlockAction(net.minecraft.network.play.server.SPacketBlockAction) SPacketPlayerAbilities(net.minecraft.network.play.server.SPacketPlayerAbilities) PlayerControllerMP(net.minecraft.client.multiplayer.PlayerControllerMP) Advancement(net.minecraft.advancements.Advancement) SPacketPlayerListHeaderFooter(net.minecraft.network.play.server.SPacketPlayerListHeaderFooter) EnumFacing(net.minecraft.util.EnumFacing) InventoryPlayer(net.minecraft.entity.player.InventoryPlayer) Maps(com.google.common.collect.Maps) SPacketConfirmTransaction(net.minecraft.network.play.server.SPacketConfirmTransaction) IInventory(net.minecraft.inventory.IInventory) GuiWinGame(net.minecraft.client.gui.GuiWinGame) CPacketCustomPayload(net.minecraft.network.play.client.CPacketCustomPayload) EntityOtherPlayerMP(net.minecraft.client.entity.EntityOtherPlayerMP) SPacketSpawnPlayer(net.minecraft.network.play.server.SPacketSpawnPlayer) PacketBuffer(net.minecraft.network.PacketBuffer) GuiRecipeBook(net.minecraft.client.gui.recipebook.GuiRecipeBook) RecipeBook(net.minecraft.stats.RecipeBook) SPacketRecipeBook(net.minecraft.network.play.server.SPacketRecipeBook) SPacketRecipeBook(net.minecraft.network.play.server.SPacketRecipeBook) IRecipeShownListener(net.minecraft.client.gui.recipebook.IRecipeShownListener) IRecipe(net.minecraft.item.crafting.IRecipe) Iterator(java.util.Iterator)

Aggregations

RecipeBook (net.minecraft.stats.RecipeBook)6 EntityPlayerSP (net.minecraft.client.entity.EntityPlayerSP)4 GuiGameOver (net.minecraft.client.gui.GuiGameOver)4 Nullable (javax.annotation.Nullable)3 ItemStack (net.minecraft.item.ItemStack)3 IRecipe (net.minecraft.item.crafting.IRecipe)3 Maps (com.google.common.collect.Maps)2 FutureCallback (com.google.common.util.concurrent.FutureCallback)2 Futures (com.google.common.util.concurrent.Futures)2 GameProfile (com.mojang.authlib.GameProfile)2 Unpooled (io.netty.buffer.Unpooled)2 File (java.io.File)2 IOException (java.io.IOException)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2 URI (java.net.URI)2 URISyntaxException (java.net.URISyntaxException)2 URLDecoder (java.net.URLDecoder)2 StandardCharsets (java.nio.charset.StandardCharsets)2 Arrays (java.util.Arrays)2 Collection (java.util.Collection)2