Sync tile entity when book texture changes

This commit is contained in:
Electroblob77
2020-05-16 22:24:14 +01:00
parent 594c546f11
commit 94a17a63c1
2 changed files with 8 additions and 1 deletions
@@ -196,6 +196,11 @@ public class BlockBookshelf extends BlockHorizontal implements ITileEntityProvid
return bookTextures == null ? ImmutableList.copyOf(BOOK_TEXTURE_MAP.values()) : bookTextures;
}
/** Returns the list of registered book items, in ID order. */
public static ImmutableList<Item> getBookItems(){
return bookItems;
}
/** Called during block registration to initialise the block properties for each book. */
public static void initBookProperties(){
for(int i=0; i<SLOT_COUNT; i++){