28 lines
754 B
Java
28 lines
754 B
Java
package ru.betterend.blocks.basis;
|
|
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
import net.minecraft.block.BlockWithEntity;
|
|
import net.minecraft.block.entity.BlockEntity;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.loot.context.LootContext;
|
|
import net.minecraft.world.BlockView;
|
|
|
|
public class BaseBlockWithEntity extends BlockWithEntity {
|
|
|
|
public BaseBlockWithEntity(Settings settings) {
|
|
super(settings);
|
|
}
|
|
|
|
@Override
|
|
public BlockEntity createBlockEntity(BlockView world) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
|
|
return Collections.singletonList(new ItemStack(this));
|
|
}
|
|
}
|