Restore methods so other addons work again (#92)

Co-authored-by: Alexdoru <[email protected]>
This commit is contained in:
boubou19andAlexdoru authored and GitHub committed 2025-07-22 15:22:13 +00:00
1 parent c5ceef1a78
commit 96521a399b
38 files changed
+1056 -866

No files matched your search

@@ -82,6 +82,15 @@ public class BlockBifrost extends BlockModContainer<TileBifrost> implements ILex
return 0;
}
@SideOnly(Side.CLIENT)
public void loadTextures(TextureStitchEvent.Pre event) {
if(event.map.getTextureType() == 0) {
TextureAtlasSprite icon = new InterpolatedIcon("botania:bifrost");
if(event.map.setTextureEntry("botania:bifrost", icon))
blockIcon = icon;
}
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister par1IconRegister) {
@@ -101,12 +110,8 @@ public class BlockBifrost extends BlockModContainer<TileBifrost> implements ILex
public class EventHandler {
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void loadTextures(TextureStitchEvent.Pre event) {
if(event.map.getTextureType() == 0) {
TextureAtlasSprite icon = new InterpolatedIcon("botania:bifrost");
if(event.map.setTextureEntry("botania:bifrost", icon))
blockIcon = icon;
}
public void loadTexturesWrapper(TextureStitchEvent.Pre event) {
BlockBifrost.this.loadTextures(event);
}
}
}