geforkt von Mirrors/Paper
Add sun related API
== AT == public net.minecraft.world.entity.Mob isSunBurnTick()Z
Dieser Commit ist enthalten in:
Ursprung
5a43ef8127
Commit
a75d433b3e
@ -755,6 +755,13 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
@Override
|
||||||
|
public boolean isDayTime() {
|
||||||
|
return getHandle().isDay();
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getGameTime() {
|
public long getGameTime() {
|
||||||
return this.world.levelData.getGameTime();
|
return this.world.levelData.getGameTime();
|
||||||
|
@ -91,4 +91,11 @@ public abstract class CraftMob extends CraftLivingEntity implements Mob {
|
|||||||
public long getSeed() {
|
public long getSeed() {
|
||||||
return this.getHandle().lootTableSeed;
|
return this.getHandle().lootTableSeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
@Override
|
||||||
|
public boolean isInDaylight() {
|
||||||
|
return getHandle().isSunBurnTick();
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren