-
Notifications
You must be signed in to change notification settings - Fork 113
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 #1276 from Artienia80/master
Aether portal for supplementaries map
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 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
26 changes: 26 additions & 0 deletions
26
...net/mehvahdjukaar/supplementaries/common/misc/map_markers/markers/AetherPortalMarker.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,26 @@ | ||
package net.mehvahdjukaar.supplementaries.common.misc.map_markers.markers; | ||
|
||
import net.mehvahdjukaar.moonlight.api.map.markers.SimpleMapBlockMarker; | ||
import net.mehvahdjukaar.moonlight.api.util.Utils; | ||
import net.mehvahdjukaar.supplementaries.common.misc.map_markers.ModMapMarkers; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.BlockGetter; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class AetherPortalMarker extends SimpleMapBlockMarker { | ||
|
||
public AetherPortalMarker() { | ||
super(ModMapMarkers.AETHER_PORTAL_DECORATION_TYPE); | ||
} | ||
|
||
@Nullable | ||
public static AetherPortalMarker getFromWorld(BlockGetter world, BlockPos pos) { | ||
if (Utils.getID(getType().toString().equals("aether:aether_portal")) { | ||
var m = new AetherPortalMarker(); | ||
m.setPos(pos); | ||
return m; | ||
} else { | ||
return null; | ||
} | ||
} | ||
} |
Binary file added
BIN
+249 Bytes
...src/main/resources/assets/supplementaries/textures/map_marker/aether_portal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
common/src/main/resources/data/supplementaries/moonlight/map_markers/aether_portal.json
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,3 @@ | ||
{ | ||
"custom_type": "supplementaries:aether_portal" | ||
} |