Compare commits

..

2 Commits

Author SHA1 Message Date
e98b44453d Tweak
All checks were successful
EnergonRelics/pipeline/head This commit looks good
2020-07-28 16:47:10 -04:00
ee7f8e481c Reorganize 2020-07-28 16:46:34 -04:00
9 changed files with 19 additions and 16 deletions

View File

@ -6,11 +6,11 @@ import com.thebrokenrail.energonrelics.block.DefensiveLaserBlock;
import com.thebrokenrail.energonrelics.block.HolographicSkyBlock;
import com.thebrokenrail.energonrelics.block.LightningRodBlock;
import com.thebrokenrail.energonrelics.block.forcefield.ForcefieldProjectorBlock;
import com.thebrokenrail.energonrelics.block.forcefield.IndustrialLaserProjectorBlock;
import com.thebrokenrail.energonrelics.block.forcefield.IndustrialLaserBlock;
import com.thebrokenrail.energonrelics.block.forcefield.RepulsorBeamBlock;
import com.thebrokenrail.energonrelics.block.forcefield.TractorBeamBlock;
import com.thebrokenrail.energonrelics.block.forcefield.TractorBeamProjectorBlock;
import com.thebrokenrail.energonrelics.block.forcefield.laser.IndustrialLaserProjectorBlock;
import com.thebrokenrail.energonrelics.block.forcefield.laser.IndustrialLaserBlock;
import com.thebrokenrail.energonrelics.block.forcefield.beam.RepulsorBeamBlock;
import com.thebrokenrail.energonrelics.block.forcefield.beam.TractorBeamBlock;
import com.thebrokenrail.energonrelics.block.forcefield.beam.TractorBeamProjectorBlock;
import com.thebrokenrail.energonrelics.block.forcefield.ForcefieldBlock;
import com.thebrokenrail.energonrelics.block.misc.VeridiumBlockBlock;
import com.thebrokenrail.energonrelics.block.structure.StructureGeneratorBlock;

View File

@ -1,7 +1,8 @@
package com.thebrokenrail.energonrelics.block.entity.forcefield;
package com.thebrokenrail.energonrelics.block.entity.forcefield.laser;
import com.thebrokenrail.energonrelics.EnergonRelics;
import com.thebrokenrail.energonrelics.block.forcefield.IndustrialLaserProjectorBlock;
import com.thebrokenrail.energonrelics.block.entity.forcefield.FieldProjectorBlockEntity;
import com.thebrokenrail.energonrelics.block.forcefield.laser.IndustrialLaserProjectorBlock;
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
@ -16,6 +17,7 @@ import net.minecraft.world.explosion.Explosion;
public class IndustrialLaserBlockEntity extends FieldProjectorBlockEntity {
private BlockPos targetPos;
private BlockState targetState;
private int progress = 0;
public IndustrialLaserBlockEntity(BlockEntityType<?> type) {
@ -52,7 +54,7 @@ public class IndustrialLaserBlockEntity extends FieldProjectorBlockEntity {
} else {
Vec3d vec = Vec3d.ofCenter(targetPos);
((ServerWorld) getWorld()).spawnParticles(ParticleTypes.FLAME, vec.getX(), vec.getY(), vec.getZ(), 2, 0.3f, 0.3f, 0.3f, 0f);
((ServerWorld) getWorld()).spawnParticles(ParticleTypes.FLAME, vec.getX(), vec.getY(), vec.getZ(), 1, 0.4f, 0.4f, 0.4f, 0f);
progress++;
}

View File

@ -1,4 +1,4 @@
package com.thebrokenrail.energonrelics.block.entity.forcefield;
package com.thebrokenrail.energonrelics.block.entity.forcefield.laser;
import com.thebrokenrail.energonrelics.EnergonRelics;
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
@ -37,6 +37,7 @@ public class IndustrialLaserRegistry {
}
static {
add(Blocks.COAL_ORE, Items.COAL, Blocks.COAL_BLOCK);
add(Blocks.IRON_ORE, Items.IRON_INGOT, Blocks.IRON_BLOCK);
add(Blocks.GOLD_ORE, Items.GOLD_INGOT, Blocks.GOLD_BLOCK);
add(Blocks.DIAMOND_ORE, Items.DIAMOND, Blocks.DIAMOND_BLOCK);

View File

@ -1,4 +1,4 @@
package com.thebrokenrail.energonrelics.block.forcefield;
package com.thebrokenrail.energonrelics.block.forcefield.beam;
import com.thebrokenrail.energonrelics.block.forcefield.util.BeamBlock;

View File

@ -1,4 +1,4 @@
package com.thebrokenrail.energonrelics.block.forcefield;
package com.thebrokenrail.energonrelics.block.forcefield.beam;
import com.thebrokenrail.energonrelics.block.forcefield.util.BeamBlock;

View File

@ -1,4 +1,4 @@
package com.thebrokenrail.energonrelics.block.forcefield;
package com.thebrokenrail.energonrelics.block.forcefield.beam;
import com.thebrokenrail.energonrelics.EnergonRelics;
import com.thebrokenrail.energonrelics.block.forcefield.util.FieldProjectorBlock;

View File

@ -1,4 +1,4 @@
package com.thebrokenrail.energonrelics.block.forcefield;
package com.thebrokenrail.energonrelics.block.forcefield.laser;
import com.thebrokenrail.energonrelics.EnergonRelics;
import com.thebrokenrail.energonrelics.block.forcefield.util.AbstractFieldBlock;

View File

@ -1,6 +1,6 @@
package com.thebrokenrail.energonrelics.block.forcefield;
package com.thebrokenrail.energonrelics.block.forcefield.laser;
import com.thebrokenrail.energonrelics.block.entity.forcefield.IndustrialLaserBlockEntity;
import com.thebrokenrail.energonrelics.block.entity.forcefield.laser.IndustrialLaserBlockEntity;
import com.thebrokenrail.energonrelics.block.forcefield.util.FieldProjectorBlock;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;

View File

@ -1,7 +1,7 @@
package com.thebrokenrail.energonrelics.block.forcefield.util;
import com.thebrokenrail.energonrelics.EnergonRelics;
import com.thebrokenrail.energonrelics.block.forcefield.TractorBeamProjectorBlock;
import com.thebrokenrail.energonrelics.block.forcefield.beam.TractorBeamProjectorBlock;
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
import net.minecraft.block.BlockState;
import net.minecraft.block.ShapeContext;