Add the gamemode inventory backup function
This commit is contained in:
parent
750bc86550
commit
749c1964ad
75 changed files with 8656 additions and 7 deletions
30
src/main/java/dev/zontreck/otemod/blocks/ParallaxWindow.java
Normal file
30
src/main/java/dev/zontreck/otemod/blocks/ParallaxWindow.java
Normal file
|
@ -0,0 +1,30 @@
|
|||
package dev.zontreck.otemod.blocks;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.world.level.block.*;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.properties.DirectionProperty;
|
||||
import net.minecraft.world.phys.shapes.VoxelShape;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class ParallaxWindow extends BaseEntityBlock
|
||||
{
|
||||
protected static final double OFFSET = 0.0625;
|
||||
|
||||
public ParallaxWindow(int light) {
|
||||
super(Properties.copy(Blocks.BEDROCK).lightLevel(x->light).sound(SoundType.GLASS));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean propagatesSkylightDown(BlockState pState, BlockGetter pReader, BlockPos pPos) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public BlockEntity newBlockEntity(BlockPos blockPos, BlockState blockState) {
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in a new issue