Fixed Compiletime issue
This commit is contained in:
parent
fd2559e038
commit
a8856fff15
94 changed files with 562 additions and 574 deletions
|
@ -116,7 +116,7 @@ public class DragonflyEntity extends DespawnableAnimal implements FlyingAnimal {
|
|||
|
||||
@Override
|
||||
public SoundEvent getAmbientSound() {
|
||||
return EndSounds.ENTITY_DRAGONFLY;
|
||||
return EndSounds.ENTITY_DRAGONFLY.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -82,17 +82,17 @@ public class ShadowWalkerEntity extends Monster {
|
|||
|
||||
@Override
|
||||
protected SoundEvent getAmbientSound() {
|
||||
return EndSounds.ENTITY_SHADOW_WALKER;
|
||||
return EndSounds.ENTITY_SHADOW_WALKER.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEvent getHurtSound(DamageSource source) {
|
||||
return EndSounds.ENTITY_SHADOW_WALKER_DAMAGE;
|
||||
return EndSounds.ENTITY_SHADOW_WALKER_DAMAGE.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEvent getDeathSound() {
|
||||
return EndSounds.ENTITY_SHADOW_WALKER_DEATH;
|
||||
return EndSounds.ENTITY_SHADOW_WALKER_DEATH.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.betterx.betterend.registry.EndEntities;
|
|||
import org.betterx.betterend.registry.EndItems;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.NbtUtils;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
|
@ -95,7 +95,7 @@ public class SilkMothEntity extends Animal implements FlyingAnimal {
|
|||
hivePos = NbtUtils.readBlockPos(tag.getCompound("HivePos"));
|
||||
ResourceLocation worldID = new ResourceLocation(tag.getString("HiveWorld"));
|
||||
try {
|
||||
hiveWorld = level.getServer().getLevel(ResourceKey.create(Registry.DIMENSION_REGISTRY, worldID));
|
||||
hiveWorld = level.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, worldID));
|
||||
} catch (Exception e) {
|
||||
BetterEnd.LOGGER.warning("Silk Moth Hive World {} is missing!", worldID);
|
||||
hivePos = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue