/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.jspecify.annotations.Nullable */ package net.minecraft.world.level.block; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityTicker; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.gameevent.GameEventListener; import org.jspecify.annotations.Nullable; public interface EntityBlock { public @Nullable BlockEntity newBlockEntity(BlockPos var1, BlockState var2); default public @Nullable BlockEntityTicker getTicker(Level level, BlockState blockState, BlockEntityType type) { return null; } default public @Nullable GameEventListener getListener(ServerLevel level, T blockEntity) { if (blockEntity instanceof GameEventListener.Provider) { GameEventListener.Provider provider = (GameEventListener.Provider)((Object)blockEntity); return provider.getListener(); } return null; } }