This repository has been archived by the owner on May 13, 2023. It is now read-only.
forked from WayofTime/BloodMagic
-
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.
Added a lot of things: - Blood Tank - Teleposition Sigil - Transposition Sigil - Cobblestone/Netherrack/Obisidian generation Ritual - Tree Cutter Ritual - Pump Ritual - Altar Builder Ritual - Block Placing Ritual - Portal Ritual - Teleportation System and API Components - Cross pattern Area Descriptor - Two reagents and their textures for the sigils’ crafting Fixed: - Teleposer not teleporting entities correctly And probably other things I forgot!
- Loading branch information
Tombenpotter
committed
Feb 18, 2016
1 parent
d947f23
commit 7e8aec8
Showing
53 changed files
with
3,034 additions
and
375 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
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
68 changes: 68 additions & 0 deletions
68
src/main/java/WayofTime/bloodmagic/api/teleport/ChunkPairSerializable.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,68 @@ | ||
package WayofTime.bloodmagic.api.teleport; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
import net.minecraft.util.BlockPos; | ||
|
||
import java.io.Serializable; | ||
|
||
@ToString | ||
@EqualsAndHashCode | ||
public class ChunkPairSerializable implements Serializable | ||
{ | ||
@Getter | ||
private int chunkXPos; | ||
@Getter | ||
private int chunkZPos; | ||
|
||
public ChunkPairSerializable(int chunkXPos, int chunkZPos) | ||
{ | ||
this.chunkXPos = chunkXPos; | ||
this.chunkZPos = chunkZPos; | ||
} | ||
|
||
public ChunkPairSerializable(BlockPos blockPos) | ||
{ | ||
this(blockPos.getX() >> 4, blockPos.getZ() >> 4); | ||
} | ||
|
||
public BlockPos getChunkCenter(int y) | ||
{ | ||
return new BlockPos((chunkXPos << 4) + 8, y, (chunkZPos << 4) + 8); | ||
} | ||
|
||
public BlockPos getChunkCenter(){ | ||
return getChunkCenter(64); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) | ||
{ | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
|
||
ChunkPairSerializable that = (ChunkPairSerializable) o; | ||
|
||
if (chunkXPos != that.chunkXPos) return false; | ||
return chunkZPos == that.chunkZPos; | ||
|
||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
int result = chunkXPos; | ||
result = 31 * result + chunkZPos; | ||
return result; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return "ChunkPairSerializable{" + | ||
"chunkXPos=" + chunkXPos + | ||
", chunkZPos=" + chunkZPos + | ||
'}'; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/WayofTime/bloodmagic/api/teleport/ITeleport.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 WayofTime.bloodmagic.api.teleport; | ||
|
||
public interface ITeleport | ||
{ | ||
public void teleport(); | ||
|
||
public int getTeleportCost(); | ||
} |
Oops, something went wrong.