Skip to content

Commit

Permalink
清理已不再使用的硬编码数据
Browse files Browse the repository at this point in the history
  • Loading branch information
ChloePrime committed Oct 2, 2024
1 parent aaf946d commit 59011bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Mod.EventBusSubscriber
public class EnergyWeaponBehavior {
public static final Map<ResourceLocation, EnergyWeaponData> DATA_MAP = new ConcurrentHashMap<>(Map.of(
ModTechPoweredArsenal.loc("ew_scythe"), new EnergyWeaponData(200, 600, true)
));

public static boolean isEnergyWeapon(ItemStack stack) {
return Gunsmith.getGunInfo(stack)
.map(GunInfo::index)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import mod.chloeprime.gunsmithlib.api.util.Gunsmith;
import mod.chloeprime.modtechpoweredarsenal.ModTechPoweredArsenal;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.LivingEntity;
Expand All @@ -15,15 +14,10 @@
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

import java.util.Map;
import java.util.OptionalInt;
import java.util.concurrent.ConcurrentHashMap;

@Mod.EventBusSubscriber
public class OverheatMechanic {
public static final Map<ResourceLocation, OverheatData> DATA_MAP = new ConcurrentHashMap<>(Map.of(
ModTechPoweredArsenal.loc("ew_scythe"), new OverheatData(30, 20, 60, 1, 1)
));
public static final String TAG_KEY_NEXT_LOAD_ETA = "%s:overheat.last_shoot".formatted(ModTechPoweredArsenal.MODID);
public static final String TAG_KEY_HEAT = "%s:overheat.heat".formatted(ModTechPoweredArsenal.MODID);

Expand Down

0 comments on commit 59011bb

Please sign in to comment.