-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.refinedmods.refinedstorage2.platform.common.portablegrid; | ||
|
||
import com.refinedmods.refinedstorage2.platform.common.content.BlockConstants; | ||
import com.refinedmods.refinedstorage2.platform.common.support.AbstractDirectionalBlock; | ||
import com.refinedmods.refinedstorage2.platform.common.support.direction.BiDirection; | ||
import com.refinedmods.refinedstorage2.platform.common.support.direction.BiDirectionType; | ||
import com.refinedmods.refinedstorage2.platform.common.support.direction.DirectionType; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.BlockGetter; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.minecraft.world.phys.shapes.CollisionContext; | ||
import net.minecraft.world.phys.shapes.VoxelShape; | ||
|
||
public class PortableGridBlock extends AbstractDirectionalBlock<BiDirection> { | ||
private static final VoxelShape SHAPE = box(0, 0, 0, 16, 13.2, 16); | ||
|
||
public PortableGridBlock() { | ||
super(BlockConstants.PROPERTIES); | ||
} | ||
|
||
@Override | ||
protected DirectionType<BiDirection> getDirectionType() { | ||
return BiDirectionType.INSTANCE; | ||
} | ||
|
||
@Override | ||
public VoxelShape getShape(final BlockState $$0, final BlockGetter $$1, final BlockPos $$2, | ||
Check failure on line 28 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java GitHub Actions / build / build
Check failure on line 28 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java GitHub Actions / build / build
Check failure on line 28 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java GitHub Actions / build / build
|
||
final CollisionContext $$3) { | ||
Check failure on line 29 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java GitHub Actions / build / build
|
||
return super.getShape($$0, $$1, $$2, $$3); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ParametersAreNonnullByDefault | ||
@FieldsAndMethodsAreNonnullByDefault | ||
package com.refinedmods.refinedstorage2.platform.common.portablegrid; | ||
|
||
import com.refinedmods.refinedstorage2.api.core.FieldsAndMethodsAreNonnullByDefault; | ||
|
||
import javax.annotation.ParametersAreNonnullByDefault; |