移除已完成TODO

This commit is contained in:
Light_Quanta 2025-04-04 06:02:40 +08:00
parent 8e8431bb89
commit fa07e0d909
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
17 changed files with 1 additions and 101 deletions

View file

@ -25,7 +25,6 @@ import org.jetbrains.annotations.Nullable;
import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.ParametersAreNonnullByDefault;
// TODO 解决obj渲染问题
public class DragonTeethBlock extends Block { public class DragonTeethBlock extends Block {
public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED; public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED;

View file

@ -65,7 +65,6 @@ public class FuMO25BlockEntity extends BlockEntity implements MenuProvider, GeoB
public int tick = 0; public int tick = 0;
protected final ContainerEnergyData dataAccess = new ContainerEnergyData() { protected final ContainerEnergyData dataAccess = new ContainerEnergyData() {
// TODO energy
@Override @Override
public int get(int pIndex) { public int get(int pIndex) {
return switch (pIndex) { return switch (pIndex) {

View file

@ -1,24 +0,0 @@
package com.atsuishio.superbwarfare.capability.energy;
import net.minecraft.core.Direction;
import net.neoforged.neoforge.capabilities.ICapabilityProvider;
import net.neoforged.neoforge.energy.EnergyStorage;
import net.neoforged.neoforge.energy.IEnergyStorage;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
// TODO 共用实例问题
// TODO 序列化问题
public class BlockEnergyStorageProvider<T> implements ICapabilityProvider<T, Direction, IEnergyStorage> {
private final IEnergyStorage energy;
public BlockEnergyStorageProvider(int maxEnergy) {
this.energy = new EnergyStorage(maxEnergy);
}
@Override
public @Nullable IEnergyStorage getCapability(@NotNull T object, Direction context) {
return energy;
}
}

View file

@ -26,7 +26,7 @@ public class InsidiousItemRenderer extends GeoItemRenderer<InsidiousItem> {
public InsidiousItemRenderer() { public InsidiousItemRenderer() {
super(new InsidiousItemModel()); super(new InsidiousItemModel());
// TODO render layer // TODO layer
// this.addRenderLayer(new InsidiousLayer(this)); // this.addRenderLayer(new InsidiousLayer(this));
} }

View file

@ -38,7 +38,6 @@ public class VectorItemRenderer extends GeoItemRenderer<VectorItem> {
super(new VectorItemModel()); super(new VectorItemModel());
// TODO layer // TODO layer
// // TODO layer
// this.addRenderLayer(new VectorLayer(this)); // this.addRenderLayer(new VectorLayer(this));
this.renderArms = false; this.renderArms = false;

View file

@ -128,12 +128,6 @@ public class CannonShellEntity extends FastThrowableProjectile implements GeoEnt
} }
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.HE_5_INCHES.get(); return ModItems.HE_5_INCHES.get();

View file

@ -25,12 +25,6 @@ public class FlareDecoyEntity extends Entity {
super(ModEntities.FLARE_DECOY.get(), level); super(ModEntities.FLARE_DECOY.get(), level);
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected void readAdditionalSaveData(@NotNull CompoundTag compoundTag) { protected void readAdditionalSaveData(@NotNull CompoundTag compoundTag) {
} }

View file

@ -74,12 +74,6 @@ public class GunGrenadeEntity extends FastThrowableProjectile implements GeoEnti
this.charged = charged; this.charged = charged;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.GRENADE_40MM.get(); return ModItems.GRENADE_40MM.get();

View file

@ -51,12 +51,6 @@ public class HandGrenadeEntity extends FastThrowableProjectile implements GeoEnt
this.fuse = fuse; this.fuse = fuse;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.HAND_GRENADE.get(); return ModItems.HAND_GRENADE.get();

View file

@ -51,12 +51,6 @@ public class HeliRocketEntity extends FastThrowableProjectile implements GeoEnti
this.explosionRadius = explosionRadius; this.explosionRadius = explosionRadius;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.ROCKET.get(); return ModItems.ROCKET.get();

View file

@ -78,12 +78,6 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
this.monsterMultiplier = monsterMultiplier; this.monsterMultiplier = monsterMultiplier;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.JAVELIN_MISSILE.get(); return ModItems.JAVELIN_MISSILE.get();

View file

@ -22,12 +22,6 @@ public class MelonBombEntity extends FastThrowableProjectile {
super(ModEntities.MELON_BOMB.get(), entity, level); super(ModEntities.MELON_BOMB.get(), entity, level);
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return Items.MELON; return Items.MELON;

View file

@ -52,12 +52,6 @@ public class RgoGrenadeEntity extends FastThrowableProjectile implements GeoEnti
this.fuse = fuse; this.fuse = fuse;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.RGO_GRENADE.get(); return ModItems.RGO_GRENADE.get();

View file

@ -51,12 +51,6 @@ public class SmallCannonShellEntity extends FastThrowableProjectile implements G
this.explosionRadius = explosionRadius; this.explosionRadius = explosionRadius;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.SMALL_SHELL.get(); return ModItems.SMALL_SHELL.get();

View file

@ -56,13 +56,6 @@ public class TaserBulletEntity extends AbstractArrow implements GeoEntity {
super(type, world); super(type, world);
this.noCulling = true; this.noCulling = true;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
public void playerTouch(@NotNull Player pEntity) { public void playerTouch(@NotNull Player pEntity) {
} }

View file

@ -56,12 +56,6 @@ public class WgMissileEntity extends FastThrowableProjectile implements GeoEntit
this.explosionRadius = explosionRadius; this.explosionRadius = explosionRadius;
} }
// TODO AEP
// @Override
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
// return NetworkHooks.getEntitySpawningPacket(this);
// }
@Override @Override
protected @NotNull Item getDefaultItem() { protected @NotNull Item getDefaultItem() {
return ModItems.WIRE_GUIDE_MISSILE.get(); return ModItems.WIRE_GUIDE_MISSILE.get();

View file

@ -71,12 +71,6 @@ public class TaserItem extends GunItem implements GeoItem, SpecialFireWeapon, En
return Math.round((float) (cap != null ? cap.getEnergyStored() : 0) * 13.0F / MAX_ENERGY); return Math.round((float) (cap != null ? cap.getEnergyStored() : 0) * 13.0F / MAX_ENERGY);
} }
// TODO register cap
// @Override
// public ICapabilityProvider initCapabilities(ItemStack stack, CompoundTag tag) {
// return new ItemEnergyProvider(stack, energyCapacity.get());
// }
@Override @Override
public int getBarColor(@NotNull ItemStack pStack) { public int getBarColor(@NotNull ItemStack pStack) {
return 0xFFFF00; return 0xFFFF00;