add item frames to NoRender
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m18s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m18s
This commit is contained in:
parent
6d852bda01
commit
c3331d899a
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,7 @@ import de.com.baseband.client.feature.Feature;
|
|||
import de.com.baseband.client.feature.category.Render;
|
||||
import de.com.baseband.client.registry.annotation.Config;
|
||||
import net.minecraftforge.client.event.RenderBlockOverlayEvent;
|
||||
import net.minecraftforge.client.event.RenderItemInFrameEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
@Render
|
||||
|
@ -29,6 +30,8 @@ public class NoRender extends Feature {
|
|||
@Config("Toast")
|
||||
public boolean toast;
|
||||
|
||||
@Config("ItemFrame")
|
||||
public boolean itemFrame;
|
||||
|
||||
|
||||
@SubscribeEvent
|
||||
|
@ -37,6 +40,10 @@ public class NoRender extends Feature {
|
|||
event.setCanceled(true);
|
||||
if (block && event.getOverlayType() == RenderBlockOverlayEvent.OverlayType.BLOCK)
|
||||
event.setCanceled(true);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void renderEntityEvent(RenderItemInFrameEvent event) {
|
||||
event.setCanceled(itemFrame);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue