Monday, January 23, 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:

    • Plant Mega Pack Mod 1.9/1.8.9/1.8 Description Plant Mega Pack Mod (PMP) innovates numerous real plants into Minecraft and stands out a comprehensive selection of plants from around the world. This mod aims mainly to enhance your worlds in a realistic w… Read More
    • Double Jump Mod 1.9 Description With Double Jump mod you can jump two times in the air, what do you want more in life?Read more: Wall Jump ModMod Showcase: Download here : Double Jump Mod 1.9 See more : Minecraft 1.11 Mo… Read More
    • My Heroes Ability Mod 1.9 Description My Heroes Ability mod adds weapons and armors that give you abilities similar to the TV show Heroes.Features:Fire Cannon Download here : My Heroes Ability Mod 1.9 See more : Minecraft 1.11… Read More
    • Automagy Mod 1.8.9/1.7.10/1.7.2 Description Automagy Mod is a Thaumcraft 4 addon about automation and logistics.Key Features:Improved control over golems. Vis/Essentia Logic: React to the state of warded jars, recharging wands, nodes, cauldrons and … Read More
    • Animals’ Revenge Mod 1.7.10 Description One night, all the animal leaders-Lord Burger, Lord Cluck, King Fleece, King Kicker, Royal Meow, King Fungi, and King Bacon-met. They decided to start a rebellion against the players. So the Great Revenge s… Read More

    0 comments:

    Post a Comment