Implement EndGateway#isExactTeleport and EndGateway#setExactTeleport(boolean)
Dieser Commit ist enthalten in:
Ursprung
205982588f
Commit
e80114dff4
@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/TileEntityEndGateway.java
|
||||
+++ b/net/minecraft/server/TileEntityEndGateway.java
|
||||
@@ -5,13 +5,17 @@
|
||||
@@ -5,14 +5,18 @@
|
||||
import java.util.Random;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@ -15,10 +15,12 @@
|
||||
private long f = 0L;
|
||||
private int g = 0;
|
||||
- private BlockPosition h;
|
||||
- private boolean i;
|
||||
+ public BlockPosition h; // PAIL private to public
|
||||
private boolean i;
|
||||
+ public boolean i; // PAIL private to public
|
||||
|
||||
public TileEntityEndGateway() {}
|
||||
|
||||
@@ -103,6 +107,26 @@
|
||||
if (this.h != null) {
|
||||
BlockPosition blockposition = this.i ? this.h : this.j();
|
||||
|
@ -43,6 +43,16 @@ public class CraftEndGateway extends CraftBlockState implements EndGateway {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isExactTeleport() {
|
||||
return gateway.i; // PAIL: Rename exactTeleport
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExactTeleport(boolean exact) {
|
||||
gateway.i = exact;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean update(boolean force, boolean applyPhysics) {
|
||||
boolean result = super.update(force, applyPhysics);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren