Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-161060

StairsBlock class constructor is protected instead of public

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.14.4
    • None
    • Windows 10
      Java 8
    • Confirmed
    • Block states
    • Low

      Unlike SlabBlock, the constructor for StairsBlock appears protected on the decompiled code (where in SlabBlock it's public). That forces modders to create a derived class with a public constructor if they want to create custom stair blocks.

      public SlabBlock (Block.Properties properties) {
      
      protected StairsBlock (BlockState state, Block.Properties properties) {
      

            slicedlime [Mojang] slicedlime
            ShadowCPlays Matias Jose
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: