mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +01:00
more compile fixes
This commit is contained in:
parent
fc727a05cd
commit
916f988912
@ -18,10 +18,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
||||||
if (spawnedViaMobSpawner) {
|
if (spawnedViaMobSpawner) {
|
||||||
nbt.putBoolean("Paper.FromMobSpawner", true);
|
nbttagcompound.putBoolean("Paper.FromMobSpawner", true);
|
||||||
}
|
}
|
||||||
+ if (fromNetherPortal) {
|
+ if (fromNetherPortal) {
|
||||||
+ nbt.putBoolean("Paper.FromNetherPortal", true);
|
+ nbttagcompound.putBoolean("Paper.FromNetherPortal", true);
|
||||||
+ }
|
+ }
|
||||||
// Paper end
|
// Paper end
|
||||||
return nbttagcompound;
|
return nbttagcompound;
|
||||||
|
@ -22,7 +22,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
+ // Save entity's from mob spawner status
|
+ // Save entity's from mob spawner status
|
||||||
+ if (spawnedViaMobSpawner) {
|
+ if (spawnedViaMobSpawner) {
|
||||||
+ nbt.putBoolean("Paper.FromMobSpawner", true);
|
+ nbttagcompound.putBoolean("Paper.FromMobSpawner", true);
|
||||||
+ }
|
+ }
|
||||||
// Paper end
|
// Paper end
|
||||||
return nbttagcompound;
|
return nbttagcompound;
|
||||||
|
@ -75,11 +75,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
nbttagcompound.put("Paper.Origin", this.newDoubleList(origin.getX(), origin.getY(), origin.getZ()));
|
nbttagcompound.put("Paper.Origin", this.newDoubleList(origin.getX(), origin.getY(), origin.getZ()));
|
||||||
}
|
}
|
||||||
+ if (spawnReason != null) {
|
+ if (spawnReason != null) {
|
||||||
+ nbt.putString("Paper.SpawnReason", spawnReason.name());
|
+ nbttagcompound.putString("Paper.SpawnReason", spawnReason.name());
|
||||||
+ }
|
+ }
|
||||||
// Save entity's from mob spawner status
|
// Save entity's from mob spawner status
|
||||||
if (spawnedViaMobSpawner) {
|
if (spawnedViaMobSpawner) {
|
||||||
nbt.putBoolean("Paper.FromMobSpawner", true);
|
nbttagcompound.putBoolean("Paper.FromMobSpawner", true);
|
||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,10 +27,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
||||||
if (fromNetherPortal) {
|
if (fromNetherPortal) {
|
||||||
nbt.putBoolean("Paper.FromNetherPortal", true);
|
nbttagcompound.putBoolean("Paper.FromNetherPortal", true);
|
||||||
}
|
}
|
||||||
+ if (freezeLocked) {
|
+ if (freezeLocked) {
|
||||||
+ nbt.putBoolean("Paper.FreezeLock", true);
|
+ nbttagcompound.putBoolean("Paper.FreezeLock", true);
|
||||||
+ }
|
+ }
|
||||||
// Paper end
|
// Paper end
|
||||||
return nbttagcompound;
|
return nbttagcompound;
|
||||||
|
@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+import com.google.common.collect.MapMaker;
|
+import com.google.common.collect.MapMaker;
|
||||||
+import io.papermc.paper.configuration.GlobalConfiguration;
|
+import io.papermc.paper.configuration.GlobalConfiguration;
|
||||||
+import net.minecraft.commands.CommandFunction;
|
+import net.minecraft.commands.functions.CommandFunction;
|
||||||
+import net.minecraft.network.protocol.Packet;
|
+import net.minecraft.network.protocol.Packet;
|
||||||
+import net.minecraft.world.level.block.Block;
|
+import net.minecraft.world.level.block.Block;
|
||||||
+import net.minecraft.world.level.block.entity.BlockEntity;
|
+import net.minecraft.world.level.block.entity.BlockEntity;
|
||||||
@ -159,8 +159,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ return Timings.ofSafe("## Packet - " + packet.getClass().getName(), packetProcessTimer);
|
+ return Timings.ofSafe("## Packet - " + packet.getClass().getName(), packetProcessTimer);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public static Timing getCommandFunctionTiming(CommandFunction function) {
|
+ public static Timing getCommandFunctionTiming(CommandFunction<?> function) {
|
||||||
+ return Timings.ofSafe("Command Function - " + function.getId());
|
+ return Timings.ofSafe("Command Function - " + function.id());
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public static void processConfig(GlobalConfiguration.Timings config) {
|
+ public static void processConfig(GlobalConfiguration.Timings config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user