minecraft-src/net/minecraft/world/level/block/TerracottaBlock.java
2025-07-04 03:45:38 +03:00

27 lines
890 B
Java

package net.minecraft.world.level.block;
import com.mojang.serialization.MapCodec;
import net.minecraft.core.BlockPos;
import net.minecraft.util.RandomSource;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.sounds.AmbientDesertBlockSoundsPlayer;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
public class TerracottaBlock extends Block {
public static final MapCodec<TerracottaBlock> CODEC = simpleCodec(TerracottaBlock::new);
@Override
public MapCodec<TerracottaBlock> codec() {
return CODEC;
}
public TerracottaBlock(BlockBehaviour.Properties properties) {
super(properties);
}
@Override
public void animateTick(BlockState state, Level level, BlockPos pos, RandomSource random) {
AmbientDesertBlockSoundsPlayer.playAmbientBlockSounds(state, level, pos, random);
}
}