Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Add BlockEnderPortal for diff visibility
Dieser Commit ist enthalten in:
Ursprung
01fc296fef
Commit
9cb320654d
56
src/main/java/net/minecraft/server/BlockEnderPortal.java
Normale Datei
56
src/main/java/net/minecraft/server/BlockEnderPortal.java
Normale Datei
@ -0,0 +1,56 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockEnderPortal extends BlockContainer {
|
||||
|
||||
public static boolean a = false;
|
||||
|
||||
protected BlockEnderPortal(int i, Material material) {
|
||||
super(i, 0, material);
|
||||
this.a(1.0F);
|
||||
}
|
||||
|
||||
public TileEntity a(World world) {
|
||||
return new TileEntityEnderPortal();
|
||||
}
|
||||
|
||||
public void updateShape(IBlockAccess iblockaccess, int i, int j, int k) {
|
||||
float f = 0.0625F;
|
||||
|
||||
this.a(0.0F, 0.0F, 0.0F, 1.0F, f, 1.0F);
|
||||
}
|
||||
|
||||
public void a(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, List list, Entity entity) {}
|
||||
|
||||
public boolean c() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean b() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int a(Random random) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void a(World world, int i, int j, int k, Entity entity) {
|
||||
if (entity.vehicle == null && entity.passenger == null && !world.isStatic) {
|
||||
entity.b(1);
|
||||
}
|
||||
}
|
||||
|
||||
public int d() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public void onPlace(World world, int i, int j, int k) {
|
||||
if (!a) {
|
||||
if (world.worldProvider.dimension != 0) {
|
||||
world.setTypeId(i, j, k, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren