MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / onOreGenEvent

Method onOreGenEvent

src/main/java/gregtech/GT_Proxy.java:139–142  ·  view source on GitHub ↗
(GenerateMinable aEvent)

Source from the content-addressed store, hash-verified

137 private static final EnumSet<EventType> PREVENTED_ORES = EnumSet.of(EventType.COAL, EventType.IRON, EventType.GOLD, EventType.DIAMOND, EventType.REDSTONE, EventType.LAPIS, EventType.QUARTZ);
138
139 @SubscribeEvent(priority = EventPriority.HIGHEST)
140 public void onOreGenEvent(GenerateMinable aEvent) {
141 if (mDisableVanillaOres && !WD.dimTF(aEvent.world) && PREVENTED_ORES.contains(aEvent.type)) aEvent.setResult(Result.DENY);
142 }
143 @SubscribeEvent(priority = EventPriority.HIGHEST)
144 public void onTerrainGenEvent(DecorateBiomeEvent.Decorate aEvent) {
145 if (aEvent.world.provider.dimensionId == 0) {

Callers

nothing calls this directly

Calls 2

dimTFMethod · 0.95
containsMethod · 0.65

Tested by

no test coverage detected