-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #473 from PolyhedralDev/dev/biomes3
Some refractors and updates to platofrm biomes
- Loading branch information
Showing
31 changed files
with
785 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
...rms/bukkit/common/src/main/java/com/dfsek/terra/bukkit/config/VanillaBiomeProperties.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
platforms/bukkit/nms/v1_21/src/main/java/com/dfsek/terra/bukkit/nms/v1_21/NMSAddon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.dfsek.terra.bukkit.nms.v1_21; | ||
|
||
import com.dfsek.terra.api.event.events.config.ConfigurationLoadEvent; | ||
import com.dfsek.terra.api.event.functional.FunctionalEventHandler; | ||
import com.dfsek.terra.api.world.biome.Biome; | ||
import com.dfsek.terra.bukkit.BukkitAddon; | ||
import com.dfsek.terra.bukkit.PlatformImpl; | ||
import com.dfsek.terra.bukkit.nms.v1_21.config.VanillaBiomeProperties; | ||
|
||
|
||
public class NMSAddon extends BukkitAddon { | ||
|
||
public NMSAddon(PlatformImpl platform) { | ||
super(platform); | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
super.initialize(); | ||
|
||
terraBukkitPlugin.getEventManager() | ||
.getHandler(FunctionalEventHandler.class) | ||
.register(this, ConfigurationLoadEvent.class) | ||
.then(event -> { | ||
if(event.is(Biome.class)) { | ||
event.getLoadedObject(Biome.class).getContext().put(event.load(new VanillaBiomeProperties())); | ||
} | ||
}) | ||
.global(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.