Sunday, January 22, 2017

CompatLayer for Minecraft 1.11/1.10.2



Description

CompatLayer 1.11/1.10.2 is a small library/mod that allows you to write mods that run on 1.10.2 and 1.11 with the same binary jar. At least upto some point. At the very least it helps to minimize the source changes between your 1.10.2 version and 1.11 version of your mod in case you do need to have two versions for whatever reason.

Basically CompatLayer is nothing more then a set of classes and functions that help abstract away the differences between 1.10.2 and 1.11. At this moment it contains:

  • CompatBlock: A simple extension of Block that overrides methods that have changed in 1.11 and calls CompatLayer specific versions that you can override instead in your code. Currently supports ‘neighborChanged’ and ‘onBlockActivated’
  • CompatItem: A simple extension of Item that basically does the same thing as CompatBlock but then for items. Currently contains ‘onItemRightClick’
  • CompatInventory: an interface that inherits from IInventory and adds a default implementation for the new func_191420_l function.
  • CompatSidedInventory: same for ISidedInventory.
  • ChatTools: contains a simple message ‘addChatMessage’ that avoids the new parameter that player.addChatComponentMessage() has.
  • ItemStackTools: this is the biggest reason for this mod. ItemStack handling has changed a lot in 1.11. Basically itemstacks are never ‘null’. Instead there is a new empty itemstack. This class makes abstraction of that. If you carefully go through all your code that uses itemstacks and replace all calls and tests (especially things like ‘stack = null’ or ‘if (stack == null)’) with methods from this class.



  • Download here :
    CompatLayer for Minecraft 1.11/1.10.2

    See more :
    Minecraft 1.11.2 Mods
    Command Blocks 1.11.2
    Minecraft 1.11 Maps

    Related Posts:

    • Kingdoms of The Overworld (A Bunch of Stuff) Mod 1.7.10/1.7.2/1.6.4 Description In this mod there are lots of fun and crazy things. From bouncy toys to scary zombies, everything and anything added will be super fun! There is no real theme to this mod, which means there are no limitatio… Read More
    • I?m Still Hungry Mod 1.7.10 Description If you want more food inside minecraft you are at the right place, because this mod will add that ,but thats not the only thing it adds the mod also include potion effect when the food is eaten.Screenshots:… Read More
    • HatChest Mod 1.7.10 Description Move your chests easly! Tired of going back and forth to move your chest with tons of items in it? Just place them on your head!Screenshots:When you SHIFT-Right Click with an empty hand on a chest it will b… Read More
    • Ladders Mod 1.7.10/1.7.2/1.6.4 Description Ever thought the regular ladder were a bit plain and not so useful? This mini-mod aim to make ladders a bit more useful and a lot better looking.Screenshots:Mod Showcase: Download Ladders Mod 1.7.10… Read More
    • Much More Spiders Mod 1.7.10/1.7.2 Description This mod adds over 16 new spiders into Minecraft.Spiders:Forest Spider ? 40hp (Traps enemies in web, poisons and gives slowness) Spawns only in forest type biome Jungle Spider  ? 60hp (Traps enemies i… Read More

    0 comments:

    Post a Comment