-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.2.0: deprecated IMapMarkedBlock and switched to a registry system.
- updated 0.1.3 to 0.2.0 - deprecated IMapMarkedBlock - add PinLib.registerMapMarkedBlock() and PinLib.getMapMarkedBlock() for new registry - updated TestingClass to work with new API
- Loading branch information
Showing
9 changed files
with
154 additions
and
35 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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/rokoblox/pinlib/mapmarker/CustomMarkerProvider.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,5 @@ | ||
package com.rokoblox.pinlib.mapmarker; | ||
|
||
public interface CustomMarkerProvider { | ||
MapMarker run(); | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/rokoblox/pinlib/mapmarker/MapMarkedBlock.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,18 @@ | ||
package com.rokoblox.pinlib.mapmarker; | ||
|
||
import net.minecraft.block.Block; | ||
|
||
public class MapMarkedBlock { | ||
public final Block block; | ||
public final CustomMarkerProvider markerProvider; | ||
public final MarkerColorProvider markerColorProvider; | ||
public final MarkerDisplayNameProvider markerDisplayNameProvider; | ||
|
||
public MapMarkedBlock(Block block, CustomMarkerProvider markerProvider, MarkerColorProvider markerColorProvider, MarkerDisplayNameProvider markerDisplayNameProvider) { | ||
this.block = block; | ||
this.markerProvider = markerProvider; | ||
this.markerColorProvider = markerColorProvider; | ||
this.markerDisplayNameProvider = markerDisplayNameProvider; | ||
} | ||
} | ||
|
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
8 changes: 8 additions & 0 deletions
8
src/main/java/com/rokoblox/pinlib/mapmarker/MarkerColorProvider.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,8 @@ | ||
package com.rokoblox.pinlib.mapmarker; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.BlockView; | ||
|
||
public interface MarkerColorProvider { | ||
long run(BlockView world, BlockPos pos); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/rokoblox/pinlib/mapmarker/MarkerDisplayNameProvider.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,9 @@ | ||
package com.rokoblox.pinlib.mapmarker; | ||
|
||
import net.minecraft.text.Text; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.BlockView; | ||
|
||
public interface MarkerDisplayNameProvider { | ||
Text run(BlockView world, BlockPos pos); | ||
} |
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