Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
MBatt1 committed Mar 31, 2024
1 parent 1ea04c6 commit 8e4470e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ private static Settings tool() {
private static final Settings tool = tool();
private static final Settings rareTool = tool().rarity(RARE);
private static final Settings paradiseLostLootTool = tool().rarity(ParadiseLostRarity.PARADISE_LOST_LOOT);
private static Settings unstackableTool() { return tool().maxCount(1); }
private static Settings unstackableRareTool() { return tool().maxCount(1).rarity(RARE); }
private static Settings unstackableTool() {
return tool().maxCount(1);
}
private static Settings unstackableRareTool() {
return tool().maxCount(1).rarity(RARE);
}

// Olvite
public static final ShovelItem OLVITE_SHOVEL = add("olvite_shovel", new ShovelItem(ParadiseLostToolMaterials.OLVITE, 1.5f, -3f, tool()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,6 @@ private double changeGravity(double gravity) {
return gravity;
}

// 24: Removed because of gravitite's removal
// @Inject(method = "damage", at = @At("RETURN"))
// private void onDamage(DamageSource source, float amount, CallbackInfoReturnable<Boolean> cir) {
// Entity attacker = source.getAttacker();
// if (cir.getReturnValue() && attacker instanceof LivingEntity) {
// Item item = ((LivingEntity) attacker).getMainHandStack().getItem();
// if (item instanceof ToolItem tool && tool.getMaterial() == ParadiseLostToolMaterials.GRAVITITE) {
// this.addVelocity(0, amount / 20 + 0.1, 0);
// }
// }
// }

@Inject(method = "tick", at = @At("TAIL"))
private void tick(CallbackInfo ci) {
if (flipped) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.id.paradiselost.world.feature.configured_features;

import net.id.paradiselost.blocks.ParadiseLostBlocks;
import net.id.paradiselost.world.feature.ParadiseLostFeatures;
import net.id.paradiselost.world.feature.configs.BoulderFeatureConfig;
import net.id.paradiselost.world.feature.configs.GroundcoverFeatureConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.mojang.serialization.Codec;
import net.id.paradiselost.blocks.FloatingBlock;
import net.id.paradiselost.blocks.ParadiseLostBlocks;
import net.id.paradiselost.tag.ParadiseLostBlockTags;
import net.id.paradiselost.world.feature.configs.JaggedOreConfig;
import net.minecraft.block.Block;
Expand Down

0 comments on commit 8e4470e

Please sign in to comment.