WIP: portals
This commit is contained in:
parent
433ff01304
commit
9372d0ca02
12 changed files with 501 additions and 72 deletions
14
src/main/java/ru/betterend/interfaces/TeleportingEntity.java
Normal file
14
src/main/java/ru/betterend/interfaces/TeleportingEntity.java
Normal file
|
@ -0,0 +1,14 @@
|
|||
package ru.betterend.interfaces;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
||||
public interface TeleportingEntity {
|
||||
public abstract long beGetCooldown();
|
||||
public abstract void beSetCooldown(long time);
|
||||
public abstract void beSetExitPos(BlockPos pos);
|
||||
public abstract BlockPos beGetExitPos();
|
||||
|
||||
default boolean hasCooldown() {
|
||||
return this.beGetCooldown() > 0;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue