Minecraftforge: Add a way to add multiple DispenserBehaviors to a item

Created on 21 Mar 2017  路  1Comment  路  Source: MinecraftForge/MinecraftForge

Currently, if you register two mods register a DispenserBehaviour for the same item, only one will be called. It would be nice if forge could patch this so multiple DispenserBehavours can be registered for one item.

Most helpful comment

There is not really a good way for Forge to patch this in, as behaviors are registered by raw putObject calls on the registry.
You can however easily accomplish this by first checking if a behavior is already registered and if so delegating to that in yours. If all mods follow this practice, behaviors stack cleanly.

>All comments

There is not really a good way for Forge to patch this in, as behaviors are registered by raw putObject calls on the registry.
You can however easily accomplish this by first checking if a behavior is already registered and if so delegating to that in yours. If all mods follow this practice, behaviors stack cleanly.

Was this page helpful?
0 / 5 - 0 ratings