{"id":549,"date":"2018-06-12T12:01:56","date_gmt":"2018-06-12T10:01:56","guid":{"rendered":"https:\/\/www.mineprogramming.org\/?p=549"},"modified":"2018-06-12T12:34:32","modified_gmt":"2018-06-12T10:34:32","slug":"innercore-barrels","status":"publish","type":"post","link":"https:\/\/mineprogramming.org\/en\/innercore-barrels\/","title":{"rendered":"\u0414\u0435\u043b\u0430\u0435\u043c \u0431\u043e\u0447\u043a\u0443 \u0434\u043b\u044f InnerCore \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438"},"content":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u043e\u0447\u043a\u0443. \u041d\u0430\u0447\u043d\u0451\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u2013 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u0430. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0441\u0432\u043e\u0438 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u044b, \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0438\u0445 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-565 size-large\" src=\"https:\/\/www.mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_141522_275-1024x721.jpg\" alt=\"\" width=\"640\" height=\"451\" srcset=\"https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_141522_275-1024x721.jpg 1024w, https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_141522_275-300x211.jpg 300w, https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_141522_275-768x541.jpg 768w, https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_141522_275.jpg 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><br \/>\n.<!--more--><\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u0430<\/h2>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0431\u043b\u043e\u043a, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0435\u0433\u043e \u0434\u0440\u043e\u043f, \u0432\u0440\u0435\u043c\u044f \u043b\u043e\u043c\u0430\u043d\u0438\u0435, \u0432\u0437\u0440\u044b\u0432\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u0438 \u0442.\u043f.<\/p>\n<pre lang=\"Javascript\" line=\"1\">BLOCK_TYPE_LOG = Block.createSpecialType({\r\n    base: 17\r\n});\r\nIDRegistry.genBlockID(\"barrel\");\r\nBlock.createBlock(\"barrel\", [{\r\n        name: \"Wooden barrel\",\r\n        texture: [\r\n            [\"barrel_top\", 0],\r\n            [\"barrel_top\", 0],\r\n            [\"barrel_side\", 0],\r\n            [\"barrel_side\", 0],\r\n            [\"barrel_side\", 0],\r\n            [\"barrel_side\", 0]\r\n        ],\r\n        inCreative: true\r\n    },\r\n    BLOCK_TYPE_LOG\r\n]);\r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u043b\u043e\u043a \u0441 \u0430\u0439\u0434\u0438 barrel \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c Wooden barrel, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0431\u043b\u043e\u043a, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u0447\u043a\u0430 (\u0431\u0440\u0435\u0432\u043d\u043e). \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438:<\/p>\n<pre lang=\"Javascript\" line=\"1\">Translation.addTranslation(\"Wooden barrel\", {ru: \"\u0414\u0435\u0440\u0435\u0432\u044f\u043d\u043d\u0430\u044f \u0431\u043e\u0447\u043a\u0430\"});<\/pre>\n<p>\u0412\u043e\u0442 \u043c\u044b \u0438 \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a, \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 sp \u2013 \u0438\u0441\u043f\u0430\u043d\u0441\u043a\u0438\u0439, ch- \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u0438 \u0442.\u0434.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0439\u043c\u0451\u043c\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430, \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043b\u043e\u043c\u0430\u043d\u0438\u044f \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre lang=\"Javascript\" line=\"1\">ToolAPI.registerBlockMaterial(BlockID.rubberTreeLog, \"wood\");\r\n<\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043c\u044b \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439, \u0438 ToolAPI \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0430\u043c \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u0442\u0441\u044f, \u0447\u0442\u043e \u043a \u0447\u0435\u043c\u0443!<br \/>\n\u0421\u043e\u0437\u0434\u0430\u043c \u0440\u0435\u0446\u0435\u043f\u0442\u044b, \u0441\u0440\u0430\u0437\u0443 \u0434\u0432\u0430 \u0442.\u043a. \u0443 \u0431\u0440\u0451\u0432\u0435\u043d \u0430\u0439\u0434\u0438 17 \u0438 162:<\/p>\n<pre lang=\"Javascript\" line=\"1\">Recipes.addShaped({ id: BlockID.barrel, count: 1, data: 0 }, \r\n    [\"pap\", \r\n     \"gug\", \r\n     \"pgp\"],\r\n    [\"g\", 5, -1, \"p\", 265, -1, \"a\", 17, -1, \"u\", 102, -1]);\r\nRecipes.addShaped({ id: BlockID.barrel, count: 1,  data: 0 }, \r\n    [\"pap\", \r\n     \"gug\", \r\n     \"pgp\"], \r\n    [\"g\", 5, -1, \"p\", 265, -1, \"a\", 162, -1, \"u\", 102, -1]);\r\n<\/pre>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 TileEntity \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u043b\u043e\u0436\u043d\u043e\u043c\u0443 (\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c\u0443). \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n<pre lang=\"Javascript\" line=\"1\">var barrelGui = new UI.StandartWindow({\r\n    standart: {\r\n        header: {\r\n            text: {\r\n                text: \"\u0411\u043e\u0447\u043a\u0430\"\r\n            },\r\n        },\r\n        minHeight: 700,\r\n        inventory: {\r\n            standart: true\r\n        },\r\n        background: {\r\n            standart: true\r\n        }\r\n    },\r\n\r\n    drawing: [\r\n        {type: \"bitmap\", x: 850, y: 120, bitmap: \"bar\", scale: 4}\r\n    ],\r\n\r\n    elements: {\r\n        \"woodbarrelslot1\": \r\n               {type: \"slot\", x: 400, y: 100, size: 160},\r\n        \"woodbarrelslot2\": \r\n               {type: \"slot\", x: 400, y: 300, size: 160},\r\n        \"woodbarrelScale\": \r\n               {type: \"scale\", x: 850, y: 120, direction: 1, scale: 4, value:1, \r\n               bitmap: \"bar\", overlay: \"bars\", overlay_scale: 4},\r\n        \"FillText\": \r\n               {type: \"text\", x: 400, y:470 , text: \"\u0412\u0451\u0434\u0435\u0440 0\/16\", height: 60 , width:400, \r\n               font:{color:android.graphics.Color.rgb(255, 255, 255), size:30, shadow:0.5}},\r\n        \"FillText2\": \r\n               {type: \"text\", x: 400, y:40 , text: \"\u043cB 0\/16000\", height: 60,width:400, \r\n               font:{color:android.graphics.Color.rgb(255, 255, 255), size:30, shadow:0.5}}\r\n    }\r\n});\r\n<\/pre>\n<p>\u0414\u0430, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u0441\u0451 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043d\u043e \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044e. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c barrelGui, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u043c\u044b \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0435\u0432\u0430\u0435\u043c \u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0412 standart \u0432\u0441\u0451 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0434\u0432\u0443\u0445 \u0432\u0435\u0449\u0435\u0439: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f (\u0411\u043e\u0447\u043a\u0430) \u0438 minHeight. \u0427\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435? \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u043e\u0441\u0443 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432 \u0432\u044b\u0441\u043e\u0442\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 700 \u044e\u043d\u0438\u0442\u043e\u0432. \u041e\u0431\u044b\u0447\u043d\u043e \u043e\u043d\u043e \u0440\u0430\u0432\u043d\u043e ~562. \u0414\u0430\u043b\u0435\u0435 \u0432 drawing \u043c\u044b \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0444\u043e\u043d \u0434\u043b\u044f \u0448\u043a\u0430\u043b\u044b \u0441 \u0432\u043e\u0434\u043e\u0439. \u0412 elements \u0441\u043e\u0437\u0434\u0430\u0451\u043c 2 \u0441\u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432, \u0438 \u0448\u043a\u0430\u043b\u0443 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0435\u0439 (\u043f\u0440\u044f\u043c\u043e \u043d\u0430\u0434 \u0442\u043e\u0439, \u0447\u0442\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438 \u0432 drawing), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0432\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0431\u043e\u0447\u043a\u0435 \u0432 \u0432\u0435\u0434\u0440\u0430\u0445, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432 \u043c\u0438\u043b\u0438\u0431\u0430\u043a\u0435\u0442\u0430\u0445 (1\/1000 \u0432\u0435\u0434\u0440\u0430).<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-570 size-large\" src=\"https:\/\/www.mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_142837_505-1024x718.jpg\" alt=\"\" width=\"640\" height=\"449\" srcset=\"https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_142837_505-1024x718.jpg 1024w, https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_142837_505-300x210.jpg 300w, https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_142837_505-768x539.jpg 768w, https:\/\/mineprogramming.org\/wp-content\/uploads\/2018\/06\/IMG_20180612_142837_505.jpg 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a TileEntity, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u0443:<\/p>\n<pre lang=\"Javascript\" line=\"1\">TileEntity.registerPrototype(BlockID.barrel, {\r\n    defaultValues: {\r\n        type:\"water\"\r\n    },\r\n    tick: function(){\r\n    },\r\n    getGuiScreen: function(){\r\n        return barrelGui;\r\n    }\r\n});\r\n<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 type \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u043e\u0447\u043a\u0438 \u0440\u0430\u0432\u043d\u043e\u0435 \u00abwater\u00bb &#8211; \u0442\u0438\u043f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0413\u041f\u0418 (\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441) \u0431\u043e\u0447\u043a\u0438. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043a\u043e\u0434 \u0432 tick. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/p>\n<pre lang=\"Javascript\" line=\"1\">var content = this.container.getGuiContent();\r\nthis.liquidStorage.updateUiScale(\"woodbarrelScale\", this.data.type);\r\nthis.container.validateAll();\r\nvar id1 = this.container.getSlot(\"woodbarrelslot1\").id;\r\nvar data1 = this.container.getSlot(\"woodbarrelslot1\").data;\r\nvar count1 = this.container.getSlot(\"woodbarrelslot1\").count;\r\nvar id2 = this.container.getSlot(\"woodbarrelslot2\").id;\r\nvar data2 = this.container.getSlot(\"woodbarrelslot2\").data;\r\nvar count2 = this.container.getSlot(\"woodbarrelslot2\").count;\r\n<\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0435\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0430\u0439\u0434\u0438, \u0434\u0430\u0442\u0443 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0432 \u043f\u043b\u043e\u0442\u0430\u0445, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0448\u043a\u0430\u043b\u044b \u0441 \u0442\u0438\u043f\u043e\u043c \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 type, \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u043e\u0442\u044b (\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0432\u043d\u043e\u043c 0, \u0430\u0439\u0434\u0438 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u043b \u0440\u0430\u0432\u0435\u043d 0), \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e content, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0434\u0430\u0441\u0442 \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0431\u043e\u0447\u043a\u0438.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439 \u043f\u0440\u043e \u043c\u0435\u0442\u043e\u0434\u044b Liquid, \u0447\u0442\u043e\u0431\u044b \u0432\u0435\u0441\u044c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0439 \u043a\u043e\u0434 \u0431\u044b\u043b \u0432\u0430\u043c \u043f\u043e\u043d\u044f\u0442\u0435\u043d (\u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u0440\u043e \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u043b\u043e\u0442\u0430\u043c\u0438 \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435). \u0412\u0441\u0435 \u044d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u043c\u0443 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 TileEntity.<\/p>\n<ul>\n<li>updateUiScale (&#8220;\u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 UI&#8221;, &#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440) &#8211; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0448\u043a\u0430\u043b\u0443 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c, \u043a\u0430\u043a \u0448\u043a\u0430\u043b\u0443 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u043c ID, \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u0435\u0435 \u043e\u0431\u044a\u0435\u043c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438\u043c\u0438\u0442\u0430. \u0415\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d, \u0430 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043e \u043a Tile Entity, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u044d\u0442\u043e\u0433\u043e Tile Entity.<\/li>\n<li>hasDataFor (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u043d\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c.<\/li>\n<li>setLimit (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;, \u043b\u0438\u043c\u0438\u0442 \u0432 \u0432\u0435\u0434\u0440\u0430\u0445) &#8211; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u043b\u0438\u043c\u0438\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0432 \u0432\u0435\u0434\u0440\u0430\u0445, \u0435\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0433\u043e ID \u043f\u0435\u0440\u0435\u0434\u0430\u043d null, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u043c\u0438\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0435\u0439.<\/li>\n<li>getLimit (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043b\u0438\u043c\u0438\u0442 \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0432\u0435\u0434\u0440\u0430\u0445.<\/li>\n<li>setAmount (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;, \u043e\u0431\u044a\u0435\u043c \u0432 \u0432\u0435\u0434\u0440\u0430\u0445) \u2013 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0432\u0435\u0434\u0440\u0430\u0445, \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043b\u0438\u043c\u0438\u0442\u0430.<\/li>\n<li>getAmount (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b-\u0432\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0432\u0435\u0434\u0440\u0430\u0445.<\/li>\n<li>getRelativeAmount (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b-\u0432\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u043b\u0438\u043c\u0438\u0442 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0448\u043a\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430).<\/li>\n<li>getLiquidStored (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 \u043a\u043e\u043b-\u0432\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 0, \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f 1 \u0442\u0438\u043f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u043c\u0435\u0442\u043e\u0434\u043e\u043c getLiquid ().<\/li>\n<li>isFull (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 true, \u0435\u0441\u043b\u0438 \u043a\u043e\u043b-\u0432\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0440\u0430\u0432\u043d\u043e \u0435\u0435 \u043b\u0438\u043c\u0438\u0442\u0443 (\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u043b\u0438 \u043e\u043d\u0430 \u0434\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430), \u0435\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043b\u0438 \u0432\u0441\u0435 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430.<\/li>\n<li>isEmpty (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 true, \u0435\u0441\u043b\u0438 \u043a\u043e\u043b-\u0432\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0440\u0430\u0432\u043d\u043e 0, \u043f\u0443\u0441\u0442\u043e\u0442\u0435. \u0415\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0432\u0441\u0435 \u043b\u0438 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0440\u0430\u0432\u043d\u044b 0.<\/li>\n<li>addLiquid (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;, \u043e\u0431\u044a\u0435\u043c \u0432 \u0432\u0435\u0434\u0440\u0430\u0445) &#8211; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043c \u043b\u0438\u0448\u043d\u0435\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0443\u043c\u0435\u0441\u0442\u0438\u043b\u0430\u0441\u044c \u0432 \u043b\u0438\u043c\u0438\u0442.<\/li>\n<li>getLiquid (&#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;, \u043e\u0431\u044a\u0435\u043c \u0432 \u0432\u0435\u0434\u0440\u0430\u0445) &#8211; \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0431\u0440\u0430\u0442\u044c (\u0435\u0441\u043b\u0438 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u043b-\u0432\u0430, \u0442\u043e \u043e\u0442\u0434\u0430\u0435\u0442 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c, \u0430 \u043c\u0435\u043d\u044c\u0448\u0435). \u0415\u0441\u043b\u0438 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043e \u043a Tile Entity \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 requireMoreLiquid \u0432 Tile Entity.<\/li>\n<li>LiquidRegistry.getEmptyItem(id, data) &#8211; \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 ID \u0438 Data \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 {id: ID \u043f\u0443\u0441\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, data: Data \u043f\u0443\u0441\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, liquid: \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b\u0430\u0441\u044c \u0432 \u043f\u043e\u043b\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0435}, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043c\u0435\u0442, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c\u044e, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 null.<\/li>\n<li>LiquidRegistry.getItemLiquid(id, data) &#8211; \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 ID \u0438 \u0434\u0430\u0442\u0443 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432 \u043d\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043c\u0435\u0442, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c\u044e, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 null.<\/li>\n<li>LiquidRegistry.getFullItem(id, data, &#8220;\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID&#8221;) &#8211; \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u0443\u0441\u0442\u043e\u0439 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0438 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 ID \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 {id: ID \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, data: Data \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430}, \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c, \u0438\u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0432\u0435\u0440\u043d\u0435\u0442 null.<\/li>\n<\/ul>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u0447\u0442\u043e \u0432 \u0431\u043e\u0447\u043a\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0442\u0430 \u0436\u0435 \u0436\u0438\u0434\u043a\u0441\u0442\u044c, \u0447\u0442\u043e \u0438 \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0435\u0451 \u0442\u0443\u0434\u0430 \u0437\u0430\u043b\u044c\u044e\u0442, \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c, \u0430 \u0432 \u0431\u043e\u0447\u043a\u0435 \u0435\u0441\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u043d\u0435\u0451, \u0447\u0442\u043e \u0441\u043b\u043e\u0442 2, \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d \u0434\u043b\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 (\u043a\u0430\u043a \u043f\u0443\u0441\u0442\u043e\u0435 \u0432\u0435\u0434\u0440\u043e \u0438\u0437 \u0432\u0435\u0434\u0440\u0430 \u043b\u0430\u0432\u044b). \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0431\u043e\u0447\u043a\u0435 \u0442\u043e\u0442, \u0447\u0442\u043e \u0431\u044b\u043b \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0435, \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0434\u043d\u043e \u0432\u0435\u0434\u0440\u043e \u0436\u0438\u043a\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0431\u043e\u0447\u043a\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043b\u0438\u043c\u0438\u0442 \u0432 16 \u0432\u0451\u0434\u0435\u0440. \u041e\u0442\u043d\u0438\u043c\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0435\u0433\u043e \u043f\u0443\u0441\u0442\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u0441\u043b\u043e\u0442 2, \u0438 \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0432 \u0431\u043e\u0447\u043a\u0435.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0431\u043e\u0447\u043a\u0430 \u043d\u0435 \u043f\u0443\u0441\u0442\u0430, \u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043b\u0438\u0442\u044c \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442, \u0447\u0442\u043e \u0441\u043b\u043e\u0442 2 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430. \u0418 \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0438 \u043b\u0438\u043c\u0438\u0442, \u0438 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c, \u0430 \u043e\u0442\u043d\u0438\u043c\u0430\u0435\u043c. \u041a\u043e\u0434 \u043d\u0438\u0436\u0435:<\/p>\n<pre lang=\"Javascript\" line=\"1\">if (this.liquidStorage.getAmount(LiquidRegistry.getItemLiquid(\r\n        this.container.getSlot(\"woodbarrelslot1\").id,\r\n        this.container.getSlot(\"woodbarrelslot1\").data))  0 \r\n            || this.liquidStorage.isEmpty() == true) {\r\n        if (this.container.getSlot(\"woodbarrelslot2\").id == LiquidRegistry.getEmptyItem(\r\n                this.container.getSlot(\"woodbarrelslot1\").id, \r\n                this.container.getSlot(\"woodbarrelslot1\").data).id \r\n                || this.container.getSlot(\"woodbarrelslot2\").id == 0) {\r\n            this.data.type = LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, \r\n                    this.container.getSlot(\"woodbarrelslot1\").data);\r\n            this.liquidStorage.setLimit(LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, \r\n                    this.container.getSlot(\"woodbarrelslot1\").data), 16);\r\n            this.liquidStorage.addLiquid(LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, \r\n                    this.container.getSlot(\"woodbarrelslot1\").data), 1);\r\n            this.container.getSlot(\"woodbarrelslot2\").id \r\n                    = LiquidRegistry.getEmptyItem(this.container.getSlot(\"woodbarrelslot1\").id,\r\n                    this.container.getSlot(\"woodbarrelslot1\").data).id;\r\n            this.container.getSlot(\"woodbarrelslot2\").data \r\n                    = LiquidRegistry.getEmptyItem(this.container.getSlot(\"woodbarrelslot1\").id,\r\n                    this.container.getSlot(\"woodbarrelslot1\").data).data;\r\n            this.container.getSlot(\"woodbarrelslot2\").count++;\r\n            this.container.getSlot(\"woodbarrelslot1\").count--;\r\n            if (content) {\r\n               this.container.setText(\"FillText1\", \"mB \"\r\n                     + (this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) * 1000 + \"\/\"\r\n                     + this.liquidStorage.getLimit(this.data.type) * 1000));\r\n               this.container.setText(\"FillText2\", \"Bucket \" \r\n                     + this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) + \"\/\" \r\n                     + this.liquidStorage.getLimit(this.data.type));\r\n            }\r\n        }\r\n    }\r\n}\r\nif (LiquidRegistry.getFullItem(id1, data1, this.data.type) != null \r\n        && this.liquidStorage.getAmount(this.data.type) > 0) {\r\n    if (this.container.getSlot(\"woodbarrelslot2\").id == LiquidRegistry.getFullItem(id1, data1, this.data.type).id \r\n            && this.container.getSlot(\"woodbarrelslot2\").data \r\n            == LiquidRegistry.getFullItem(id1, data1, this.data.type).data || id2 == 0) {\r\n        this.container.getSlot(\"woodbarrelslot2\").id \r\n                = LiquidRegistry.getFullItem(id1, data1, this.data.type).id;\r\n        this.container.getSlot(\"woodbarrelslot2\").data \r\n                = LiquidRegistry.getFullItem(id1, data1, this.data.type).data;\r\n        this.container.getSlot(\"woodbarrelslot2\").count++;\r\n        this.container.getSlot(\"woodbarrelslot1\").count--;\r\n        this.liquidStorage.getLiquid(this.data.type, 1);\r\n        if (content) {\r\n            this.container.setText(\"FillText1\", \"mB \" \r\n                    + (this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) * 1000 + \"\/\" \r\n                    + this.liquidStorage.getLimit(this.data.type) * 1000));\r\n            this.container.setText(\"FillText2\", \"Bucket \" \r\n                    + this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) + \"\/\" \r\n                    + this.liquidStorage.getLimit(this.data.type));\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0451, \u0431\u043e\u0447\u043a\u0430 \u0433\u043e\u0442\u043e\u0432\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c. \u0414\u043b\u044f \u043b\u0435\u043d\u0438\u0432\u044b\u0445, <strong>\u0412\u0415\u0421\u042c<\/strong> \u043a\u043e\u0434 \u043d\u0438\u0436\u0435:<\/p>\n<pre lang=\"Javascript\" line=\"1\">IDRegistry.genBlockID(\"barrel\");\r\nBlock.createBlock(\"barrel\", [{\r\n    name: \"Wooden barrel\",\r\n    texture: [\r\n        [\"barrel_top\", 0],\r\n        [\"barrel_top\", 0],\r\n        [\"barrel_side\", 0],\r\n        [\"barrel_side\", 0],\r\n        [\"barrel_side\", 0],\r\n        [\"barrel_side\", 0]\r\n    ],\r\n    inCreative: false\r\n}]);\r\nTranslation.addTranslation(\"Wooden barrel\", {\r\n    ru: \"\u0414\u0435\u0440\u0435\u0432\u044f\u043d\u043d\u0430\u044f \u0431\u043e\u0447\u043a\u0430\"\r\n});\r\n\r\nvar barrelGui = new UI.StandartWindow({\r\n    standart: {\r\n        header: {\r\n            text: {\r\n                text: \"\u0411\u043e\u0447\u043a\u0430\"\r\n            },\r\n        },\r\n        minHeight: 700,\r\n        inventory: {\r\n            standart: true\r\n        },\r\n        background: {\r\n            standart: true\r\n        }\r\n    },\r\n    drawing: [{\r\n        type: \"bitmap\",\r\n        x: 850,\r\n        y: 120,\r\n        bitmap: \"bar\",\r\n        scale: 4\r\n    }],\r\n\r\n    elements: {\r\n        \"woodbarrelslot1\": {\r\n            type: \"slot\",\r\n            x: 400,\r\n            y: 100,\r\n            size: 160\r\n        },\r\n        \"woodbarrelslot2\": {\r\n            type: \"slot\",\r\n            x: 400,\r\n            y: 300,\r\n            size: 160\r\n        },\r\n        \"woodbarrelScale\": {\r\n            type: \"scale\",\r\n            x: 850,\r\n            y: 120,\r\n            direction: 1,\r\n            scale: 4,\r\n            value: 1,\r\n            bitmap: \"bar\",\r\n            overlay: \"bars\",\r\n            overlay_scale: 4\r\n        },\r\n        \"FillText\": {\r\n            type: \"text\",\r\n            x: 400,\r\n            y: 470,\r\n            text: \"\u0412\u0451\u0434\u0435\u0440 0\/16\",\r\n            height: 60,\r\n            width: 400,\r\n            font: {\r\n                color: android.graphics.Color.rgb(255, 255, 255),\r\n                size: 30,\r\n                shadow: 0.5\r\n            }\r\n        },\r\n        \"FillText2\": {\r\n            type: \"text\",\r\n            x: 400,\r\n            y: 40,\r\n            text: \"\u043cB 0\/16000\",\r\n            height: 60,\r\n            width: 400,\r\n            font: {\r\n                color: android.graphics.Color.rgb(255, 255, 255),\r\n                size: 30,\r\n                shadow: 0.5\r\n            }\r\n        }\r\n    }\r\n\r\n});\r\n\r\nTileEntity.registerPrototype(BlockID.barrel, {\r\n    defaultValues: {\r\n        type: \"water\"\r\n    },\r\n\r\n    tick: function() {\r\n        var content = this.container.getGuiContent();\r\n        this.liquidStorage.updateUiScale(\"woodbarrelScale\", this.data.type);\r\n        this.container.validateAll();\r\n        var id1 = this.container.getSlot(\"woodbarrelslot1\").id;\r\n        var data1 = this.container.getSlot(\"woodbarrelslot1\").data;\r\n        var count1 = this.container.getSlot(\"woodbarrelslot1\").count;\r\n        var id2 = this.container.getSlot(\"woodbarrelslot2\").id;\r\n        var data2 = this.container.getSlot(\"woodbarrelslot2\").data;\r\n        var count2 = this.container.getSlot(\"woodbarrelslot2\").count;\r\n        if (this.liquidStorage.getAmount(LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data))  0 || this.liquidStorage.isEmpty() == true) {\r\n                if (this.container.getSlot(\"woodbarrelslot2\").id == LiquidRegistry.getEmptyItem(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data).id || this.container.getSlot(\"woodbarrelslot2\").id == 0) {\r\n                    this.data.type = LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data);\r\n                    this.liquidStorage.setLimit(LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data), 16);\r\n                    this.liquidStorage.addLiquid(LiquidRegistry.getItemLiquid(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data), 1);\r\n                    this.container.getSlot(\"woodbarrelslot2\").id = LiquidRegistry.getEmptyItem(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data).id;\r\n                    this.container.getSlot(\"woodbarrelslot2\").data = LiquidRegistry.getEmptyItem(this.container.getSlot(\"woodbarrelslot1\").id, this.container.getSlot(\"woodbarrelslot1\").data).data;\r\n                    this.container.getSlot(\"woodbarrelslot2\").count++;\r\n                    this.container.getSlot(\"woodbarrelslot1\").count--;\r\n                    if (content) {\r\n                        this.container.setText(\"FillText1\", \"mB \" + (this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) * 1000 + \"\/\" + this.liquidStorage.getLimit(this.data.type) * 1000));\r\n                        this.container.setText(\"FillText2\", \"Bucket \" + this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) + \"\/\" + this.liquidStorage.getLimit(this.data.type));\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        if (LiquidRegistry.getFullItem(id1, data1, this.data.type) != null && this.liquidStorage.getAmount(this.data.type) > 0) {\r\n            if (this.container.getSlot(\"woodbarrelslot2\").id == LiquidRegistry.getFullItem(id1, data1, this.data.type).id && this.container.getSlot(\"woodbarrelslot2\").data == LiquidRegistry.getFullItem(id1, data1, this.data.type).data || id2 == 0) {\r\n                this.container.getSlot(\"woodbarrelslot2\").id = LiquidRegistry.getFullItem(id1, data1, this.data.type).id;\r\n                this.container.getSlot(\"woodbarrelslot2\").data = LiquidRegistry.getFullItem(id1, data1, this.data.type).data;\r\n                this.container.getSlot(\"woodbarrelslot2\").count++;\r\n                this.container.getSlot(\"woodbarrelslot1\").count--;\r\n                this.liquidStorage.getLiquid(this.data.type, 1);\r\n                if (content) {\r\n                    this.container.setText(\"FillText1\", \"mB \" + (this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) * 1000 + \"\/\" + this.liquidStorage.getLimit(this.data.type) * 1000));\r\n                    this.container.setText(\"FillText2\", \"Bucket \" + this.liquidStorage.getAmount(this.liquidStorage.getLiquidStored()) + \"\/\" + this.liquidStorage.getLimit(this.data.type));\r\n                }\r\n            }\r\n        }\r\n    },\r\n\r\n    click: function(id, count, data, coords) {\r\n\r\n    },\r\n\r\n    getGuiScreen: function() {\r\n        return barrelGui;\r\n\r\n    }\r\n});\r\n\r\nRecipes.addShaped({\r\n    id: BlockID.barrel,\r\n    count: 1,\r\n    data: 0\r\n}, [\"pap\", \"gug\", \"pgp\"], [\"g\", 5, -1, \"p\", 265, -1, \"a\", 17, -1, \"u\", 102, -1]);\r\nRecipes.addShaped({\r\n    id: BlockID.barrel,\r\n    count: 1,\r\n    data: 0\r\n}, [\"pap\", \"gug\", \"pgp\"], [\"g\", 5, -1, \"p\", 265, -1, \"a\", 162, -1, \"u\", 102, -1]);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u043e\u0447\u043a\u0443. \u041d\u0430\u0447\u043d\u0451\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u2013 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u0430. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0441\u0432\u043e\u0438 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u044b, \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0438\u0445 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c .<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"translation":{"provider":"WPGlobus","version":"2.6.8","language":"en","enabled_languages":["ru","en"],"languages":{"ru":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/posts\/549"}],"collection":[{"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":16,"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/posts\/549\/revisions\/634"}],"wp:attachment":[{"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mineprogramming.org\/en\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}