net.minecraft.util.datafix.walkers.ItemStackDataLists Java Examples

The following examples show how to use net.minecraft.util.datafix.walkers.ItemStackDataLists. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TileEntitySaltFurnace.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public static void registerFixesFurnace(DataFixer fixer) {
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntitySaltFurnace.class, new String[]{"Items"}));
}
 
Example #2
Source File: EntityVillageLord.java    From ToroQuest with GNU General Public License v3.0 4 votes vote down vote up
public static void registerFixesVillageLord(DataFixer fixer) {
	EntityLiving.registerFixesMob(fixer, EntityVillageLord.class);
	fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(EntityVillageLord.class, new String[] { "Items" }));
}
 
Example #3
Source File: GenericInventoryTeFixerWalker.java    From OpenModsLib with MIT License 4 votes vote down vote up
@Override
public void register(DataFixer registry, Class<?> registeringClass) {
	registry.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(registeringClass, GenericInventory.TAG_ITEMS));
}