Ваш браузер устарел, и поэтому некоторые важные функции этого сайта могут не работать. Пожалуйста, обновитесь до более современного браузера. :(
[04:40:21 ERROR]: Failed to save chunk [61, 60]
java.util.concurrent.CompletionException: java.lang.AbstractMethodError: Method net/mehvahdjukaar/supplementaries/common/block/tiles/SackBlockTile.getViewers()Ljava/util/List; is abstract
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?]
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
at net.minecraft.server.level.ChunkMap.m_140353_(ChunkMap.java:471) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.level.ChunkMap.m_140280_(ChunkMap.java:442) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.level.ServerChunkCache.m_201698_(ServerChunkCache.java:323) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:331) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:1005) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:327) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:944) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:791) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:278) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at java.lang.Thread.run(Thread.java:1623) [?:?]
Caused by: java.lang.AbstractMethodError: Method net/mehvahdjukaar/supplementaries/common/block/tiles/SackBlockTile.getViewers()Ljava/util/List; is abstract
at net.mehvahdjukaar.supplementaries.common.block.tiles.SackBlockTile.getViewers(SackBlockTile.java) ~[supplementaries-1.19.2-2.3.20.jar%23334!/:?]
at net.minecraft.server.level.ServerLevel.m_8712_(ServerLevel.java:922) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at net.minecraft.server.level.ChunkMap.m_202998_(ChunkMap.java:501) ~[server-1.19.2-20220805.130853-srg.jar%23353!/:?]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
package net.mehvahdjukaar.supplementaries.common.block.tiles;
import net.mehvahdjukaar.supplementaries.common.block.blocks.SafeBlock;
import net.mehvahdjukaar.supplementaries.common.inventories.SackContainerMenu;
import net.mehvahdjukaar.supplementaries.common.utils.MiscUtils;
import net.mehvahdjukaar.supplementaries.configs.CommonConfigs;
import net.mehvahdjukaar.supplementaries.reg.ModRegistry;
import net.mehvahdjukaar.supplementaries.reg.ModSounds;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.network.chat.Component;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.state.BlockState;
import org.jetbrains.annotations.Nullable;
public class SackBlockTile extends OpeneableContainerBlockEntity {
public SackBlockTile(BlockPos pos, BlockState state) {
super(ModRegistry.SACK_TILE.get(), pos, state, 27);
}
@Override
public int getContainerSize() {
return getUnlockedSlots();
}
@Override
public Component getDefaultName() {
return Component.translatable("block.supplementaries.sack");
}
@Override
protected void playOpenSound(BlockState state) {
double d0 = (double) this.worldPosition.getX() + 0.5D;
double d1 = (double) this.worldPosition.getY() + 1;
double d2 = (double) this.worldPosition.getZ() + 0.5D;
this.level.playSound(null, d0, d1, d2, ModSounds.SACK_OPEN.get(), SoundSource.BLOCKS, 1,
this.level.random.nextFloat() * 0.1F + 0.95F);
}
@Override
protected void playCloseSound(BlockState state) {
double d0 = (double) this.worldPosition.getX() + 0.5D;
double d1 = (double) this.worldPosition.getY() + 1;
double d2 = (double) this.worldPosition.getZ() + 0.5D;
this.level.playSound(null, d0, d1, d2, ModSounds.SACK_OPEN.get(), SoundSource.BLOCKS, 1,
this.level.random.nextFloat() * 0.1F + 0.8F);
}
@Override
protected void updateBlockState(BlockState state, boolean open) {
this.level.setBlock(this.getBlockPos(), state.setValue(SafeBlock.OPEN, open), 3);
}
@Override
public AbstractContainerMenu createMenu(int id, Inventory player) {
return new SackContainerMenu(id, player, this);
}
public static int getUnlockedSlots() {
return CommonConfigs.Functional.SACK_SLOTS.get();
}
public boolean isSlotUnlocked(int ind) {
return ind < getUnlockedSlots();
}
@Override
public boolean canPlaceItem(int index, ItemStack stack) {
return isSlotUnlocked(index) && MiscUtils.isAllowedInShulker(stack, this.getLevel());
}
@Override
public boolean canPlaceItemThroughFace(int index, ItemStack stack, @Nullable Direction direction) {
return this.canPlaceItem(index, stack);
}
@Override
public boolean canTakeItemThroughFace(int index, ItemStack stack, Direction direction) {
return isSlotUnlocked(index);
}
//@Override
public boolean acceptsTransfer(Player player) {
return true;
}
}
#1 | 3 августа 2023 - 06:50
Сейчас онлайн: 11
Администраторы | Главные редакторы | Модератор | Дедушки | Журналисты | HENTAI BOY | Goldфаги | Журналисты-олдфаги | ТруЪ Олдфаги-с | ТруЪ Плагинщик | Олдфаги | true Художник | Модератор бездны | Картоделы | XXXL ПХЛ | Просто хорошие люди | Посетители | Новички