This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
forked from LordDeatHunter/FabricWaystones
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
388 changed files
with
2,979 additions
and
2,777 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 wraith.fwaystones; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
import wraith.fwaystones.registry.*; | ||
import wraith.fwaystones.util.Config; | ||
import wraith.fwaystones.util.WaystoneStorage; | ||
import wraith.fwaystones.util.WaystonesEventManager; | ||
|
||
public class FabricWaystones implements ModInitializer { | ||
|
||
public static final Logger LOGGER = LogManager.getLogger("Fabric-Waystones"); | ||
public static final String MOD_ID = "fwaystones"; | ||
public static WaystoneStorage WAYSTONE_STORAGE; | ||
|
||
@Override | ||
public void onInitialize() { | ||
LOGGER.info("Is initializing."); | ||
Config.getInstance().loadConfig(); | ||
BlockRegistry.registerBlocks(); | ||
BlockEntityRegistry.registerBlockEntities(); | ||
ItemRegistry.init(); | ||
CompatRegistry.init(); | ||
WaystonesEventManager.registerEvents(); | ||
|
||
LOGGER.info("Has successfully been initialized."); | ||
LOGGER.info("If you have any issues or questions, feel free to join our Discord: https://discord.gg/vMjzgS4."); | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...access/ClientPlayerEntityMixinAccess.java → ...access/ClientPlayerEntityMixinAccess.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wraith.waystones.access; | ||
package wraith.fwaystones.access; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...wraith/waystones/access/PlayerAccess.java → ...raith/fwaystones/access/PlayerAccess.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wraith.waystones.access; | ||
package wraith.fwaystones.access; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
36 changes: 31 additions & 5 deletions
36
...tones/access/PlayerEntityMixinAccess.java → ...tones/access/PlayerEntityMixinAccess.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 |
---|---|---|
@@ -1,32 +1,58 @@ | ||
package wraith.waystones.access; | ||
package wraith.fwaystones.access; | ||
|
||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.nbt.NbtCompound; | ||
import wraith.waystones.block.WaystoneBlockEntity; | ||
import wraith.fwaystones.block.WaystoneBlockEntity; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
public interface PlayerEntityMixinAccess extends PlayerAccess { | ||
|
||
void discoverWaystone(WaystoneBlockEntity waystone); | ||
|
||
void discoverWaystone(String hash); | ||
|
||
void discoverWaystone(String hash, boolean sync); | ||
|
||
boolean hasDiscoveredWaystone(WaystoneBlockEntity waystone); | ||
|
||
void forgetWaystone(WaystoneBlockEntity waystone); | ||
|
||
void forgetWaystone(String hash); | ||
|
||
void forgetWaystone(String hash, boolean sync); | ||
|
||
void syncData(); | ||
HashSet<String> getDiscoveredWaystones(); | ||
|
||
Set<String> getDiscoveredWaystones(); | ||
|
||
ArrayList<String> getWaystonesSorted(); | ||
void learnWaystones(PlayerEntity player, boolean overwrite); | ||
|
||
void learnWaystones(PlayerEntity player); | ||
|
||
void fromTagW(NbtCompound tag); | ||
|
||
NbtCompound toTagW(NbtCompound tag); | ||
|
||
boolean shouldViewGlobalWaystones(); | ||
|
||
boolean shouldViewDiscoveredWaystones(); | ||
|
||
void toggleViewGlobalWaystones(); | ||
|
||
void toggleViewDiscoveredWaystones(); | ||
|
||
boolean hasDiscoveredWaystone(String hash); | ||
|
||
void discoverWaystones(HashSet<String> toLearn); | ||
|
||
void forgetWaystones(HashSet<String> toForget); | ||
void setTeleportCooldown(int cooldown); | ||
|
||
int getTeleportCooldown(); | ||
|
||
void setTeleportCooldown(int cooldown); | ||
|
||
void forgetAllWaystones(); | ||
} |
2 changes: 1 addition & 1 deletion
2
...nes/access/StructurePiecesListAccess.java → ...nes/access/StructurePiecesListAccess.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
2 changes: 1 addition & 1 deletion
2
...nerator_StructurePoolGeneratorAccess.java → ...nerator_StructurePoolGeneratorAccess.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
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,23 @@ | ||
package wraith.fwaystones.access; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
import wraith.fwaystones.block.WaystoneBlockEntity; | ||
|
||
public interface WaystoneValue { | ||
|
||
WaystoneBlockEntity getEntity(); | ||
|
||
String getWaystoneName(); | ||
|
||
BlockPos way_getPos(); | ||
|
||
String getWorldName(); | ||
|
||
boolean isGlobal(); | ||
|
||
String getHash(); | ||
|
||
int getColor(); | ||
|
||
void setColor(int color); | ||
} |
Oops, something went wrong.