@@ -24,9 +24,11 @@ public final class CraftLocation {
|
||||
}
|
||||
|
||||
public static Location toBukkit(BlockPosition blockPosition) {
|
||||
return toBukkit(blockPosition, null);
|
||||
return toBukkit(blockPosition, (World) null);
|
||||
}
|
||||
public static Location toBukkit(BlockPosition blockPosition, net.minecraft.world.level.World world) {
|
||||
return toBukkit(blockPosition, world.getWorld(), 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
public static Location toBukkit(BlockPosition blockPosition, World world) {
|
||||
return toBukkit(blockPosition, world, 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||
* @return string
|
||||
*/
|
||||
public String getMappingsVersion() {
|
||||
return "3009edc0fff87fa34680686663bd59df";
|
||||
return "34f399b4f2033891290b7f0700e9e47b";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -275,7 +275,7 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||
|
||||
JsonElement jsonelement = AdvancementDataWorld.GSON.fromJson(advancement, JsonElement.class);
|
||||
JsonObject jsonobject = ChatDeserializer.convertToJsonObject(jsonelement, "advancement");
|
||||
net.minecraft.advancements.Advancement.SerializedAdvancement nms = net.minecraft.advancements.Advancement.SerializedAdvancement.fromJson(jsonobject, new LootDeserializationContext(minecraftkey, MinecraftServer.getServer().getPredicateManager()));
|
||||
net.minecraft.advancements.Advancement.SerializedAdvancement nms = net.minecraft.advancements.Advancement.SerializedAdvancement.fromJson(jsonobject, new LootDeserializationContext(minecraftkey, MinecraftServer.getServer().getLootData()));
|
||||
if (nms != null) {
|
||||
MinecraftServer.getServer().getAdvancements().advancements.add(Maps.newHashMap(Collections.singletonMap(minecraftkey, nms)));
|
||||
Advancement bukkit = Bukkit.getAdvancement(key);
|
||||
@@ -305,7 +305,7 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||
return file.delete();
|
||||
}
|
||||
|
||||
private static final List<String> SUPPORTED_API = Arrays.asList("1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19");
|
||||
private static final List<String> SUPPORTED_API = Arrays.asList("1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20");
|
||||
|
||||
@Override
|
||||
public void checkSupported(PluginDescriptionFile pdf) throws InvalidPluginException {
|
||||
|
||||
@@ -31,7 +31,7 @@ import net.minecraft.world.level.dimension.DimensionManager;
|
||||
import net.minecraft.world.level.entity.EntityTypeTest;
|
||||
import net.minecraft.world.level.gameevent.GameEvent;
|
||||
import net.minecraft.world.level.levelgen.HeightMap;
|
||||
import net.minecraft.world.level.lighting.LightEngine;
|
||||
import net.minecraft.world.level.lighting.LevelLightEngine;
|
||||
import net.minecraft.world.level.material.Fluid;
|
||||
import net.minecraft.world.level.material.FluidType;
|
||||
import net.minecraft.world.level.material.FluidTypes;
|
||||
@@ -194,7 +194,7 @@ public class DummyGeneratorAccess implements GeneratorAccessSeed {
|
||||
}
|
||||
|
||||
@Override
|
||||
public LightEngine getLightEngine() {
|
||||
public LevelLightEngine getLightEngine() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user