Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Nov 4, 2023
1 parent 3e6d61c commit e887e2f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
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

View workflow job for this annotation

GitHub Actions / build / build

Parameter name '$$0' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.

Check failure on line 28 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java

View workflow job for this annotation

GitHub Actions / build / build

Parameter name '$$1' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.

Check failure on line 28 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java

View workflow job for this annotation

GitHub Actions / build / build

Parameter name '$$2' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
final CollisionContext $$3) {

Check failure on line 29 in refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/portablegrid/PortableGridBlock.java

View workflow job for this annotation

GitHub Actions / build / build

Parameter name '$$3' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.
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;

0 comments on commit e887e2f

Please sign in to comment.