<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 15:01:05 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MCPE-13752] [Internal MCPE] Block registering class is messed up</title>
                <link>https://bugs.mojang.com/browse/MCPE-13752</link>
                <project id="10200" key="MCPE">Minecraft (Bedrock codebase)</project>
                    <description>&lt;p&gt;Oh man Mojang..&lt;/p&gt;

&lt;p&gt;Whats wrong with your register Block class?&lt;/p&gt;

&lt;p&gt;Its really messed up and unsorted.&lt;/p&gt;

&lt;p&gt;In the beginnings, they are listed from highest id to lowest id.&lt;/p&gt;

&lt;p&gt;(you have to read from bottom to top)&lt;/p&gt;

&lt;p&gt;Sand&lt;br/&gt;
StillLava&lt;br/&gt;
FlowingLava&lt;br/&gt;
StillWater&lt;br/&gt;
FlowingWater&lt;br/&gt;
Bedrock&lt;br/&gt;
Sapling&lt;br/&gt;
WoodPlanks&lt;br/&gt;
Cobblestone&lt;br/&gt;
Dirt&lt;br/&gt;
Grass&lt;br/&gt;
Stone&lt;br/&gt;
Air&lt;/p&gt;

&lt;p&gt;But then, especially after id 127 (Lit redstone lamp) the class really messed up.&lt;/p&gt;

&lt;p&gt;EmeraldOre // thats 129.. wheres EmeraldBlock, the 130?&lt;br/&gt;
Cocoa // Where is activator rail?&lt;br/&gt;
LitRedStoneLamp&lt;/p&gt;

&lt;p&gt;NetherBrickStairs&lt;br/&gt;
NetherBrick  // okay.. its next to nether brick stair.. but..&lt;br/&gt;
StoneBrickStairs&lt;br/&gt;
DarkOakStairs&lt;br/&gt;
AcaciaStairs&lt;br/&gt;
WoodButton // WHY IN HOLY SKY BIOME IS THIS HERE?!&lt;br/&gt;
JungleStairs&lt;br/&gt;
BirchStairs&lt;br/&gt;
SpruceStairs&lt;/p&gt;

&lt;p&gt;How it actually should be looking like:&lt;/p&gt;

&lt;p&gt;REDSTONE_LAMP = 123&lt;br/&gt;
LIT_REDSTONE_LAMP = 124&lt;br/&gt;
ACTIVATOR_RAIL = 126&lt;br/&gt;
COCOA = 127&lt;br/&gt;
SANDSTONE_STAIRS = 128&lt;br/&gt;
EMERALD_ORE = 129&lt;br/&gt;
ENDERCHEST = 130 //?&lt;br/&gt;
TRIPWIRE_HOOK = 131&lt;br/&gt;
TRIPWIRE = 132&lt;br/&gt;
EMERALD_BLOCK = 133&lt;br/&gt;
SPRUCE_WOOD_STAIRS = 134&lt;br/&gt;
BIRCH_WOOD_STAIRS = 135&lt;br/&gt;
JUNGLE_WOOD_STAIRS = 136&lt;/p&gt;

&lt;p&gt;I know, this no actual &quot;bug&quot;.. but thats bad practice i think. A cleanup will maybe help you in future development, due to MCPE being a GREAT project.&lt;/p&gt;

&lt;p&gt;I am glad if i was able to help you a bit. Thanks ^^&lt;/p&gt;</description>
            <key id="135436">MCPE-13752</key>
            <summary>[Internal MCPE] Block registering class is messed up</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                            <reporter username="thebigsmileXD">inxomnyaa</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Feb 2016 09:40:08 +0100</created>
                <updated>Wed, 31 Aug 2016 12:04:12 +0200</updated>
                            <resolved>Fri, 26 Feb 2016 10:48:33 +0100</resolved>
                                    <version>0.14.0</version>
                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="327744" author="missmarzenia" created="Wed, 31 Aug 2016 12:04:12 +0200"  >&lt;p&gt;I meant the other Daniel, but sure.&lt;/p&gt;</comment>
                            <comment id="327735" author="thebigsmilexd" created="Wed, 31 Aug 2016 11:47:40 +0200"  >&lt;p&gt;@Daniel Wustenhoff it would only be the internal order, not changing ID&apos;s &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;@MissMarzenia Welcome &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="289687" author="missmarzenia" created="Fri, 26 Feb 2016 10:48:50 +0100"  >&lt;p&gt;Thank you Daniel for taking your time to explain that in detail &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="289685" author="darngeek" created="Fri, 26 Feb 2016 10:33:36 +0100"  >&lt;p&gt;Changing ID&apos;s will change world saves, therefor we would have to convert them.&lt;br/&gt;
Currently we try to get the IDs to be similar to PC, without breaking anything that doesn&apos;t need breaking.&lt;br/&gt;
Its important to me at least that you can search the interwebs for your block id&apos;s (even-tho on PC you can use names) and use them as if there was only one minecraft.&lt;br/&gt;
it seems PC however ran out of ID&apos;s halfway through, and started filling up the unused ID&apos;s.&lt;/p&gt;

&lt;p&gt;The unsorted isn&apos;t intended, but the overhead is also rather minor for us, we could win way more performance in other places, which is why we tackle those first &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="288817" author="thebigsmilexd" created="Tue, 23 Feb 2016 19:13:17 +0100"  >&lt;p&gt;&lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/biggrin.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; Intended mess?&lt;br/&gt;
&quot;I know, this no actual &quot;bug&quot;.. but thats bad practice i think. A cleanup will maybe help you in future development, due to MCPE being a GREAT project.&quot;&lt;/p&gt;

&lt;p&gt;^^ Its code style, you know &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
Clean code is always better for the future. It works without being cleaned up, and yea, if you need an id, you can search and replace, to get the id.&lt;br/&gt;
And also.. for example you would create an array, that has this kind of style:&lt;br/&gt;
Array(&lt;br/&gt;
 id -&amp;gt; block name&lt;br/&gt;
 id2 -&amp;gt; block name 2&lt;br/&gt;
)&lt;/p&gt;

&lt;p&gt;Sorted arrays are faster in code processing. For example in array search functions, in array pop (remove last), etc&lt;/p&gt;

&lt;p&gt;&quot;Maybe, it&apos;s Intended&quot;.. well.. I can&apos;t see any reason not to sort it, but the change is just for better internal handling.&lt;/p&gt;</comment>
                            <comment id="288758" author="luisrobles" created="Tue, 23 Feb 2016 15:59:24 +0100"  >&lt;p&gt;Do you think this is a bug? Maybe, it&apos;s Intended&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10402" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Platform</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10757"><![CDATA[Tablet - Android - Samsung Galaxy Note]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0jqlr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>