Optimized entity teleportation
This commit is contained in:
parent
7aa441171c
commit
b36c4777c5
5 changed files with 17 additions and 127 deletions
|
@ -3,12 +3,5 @@ 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;
|
||||
}
|
||||
void beSetExitPos(BlockPos pos);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue