移除已完成TODO
This commit is contained in:
parent
8e8431bb89
commit
fa07e0d909
17 changed files with 1 additions and 101 deletions
|
@ -25,7 +25,6 @@ import org.jetbrains.annotations.Nullable;
|
|||
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
|
||||
// TODO 解决obj渲染问题
|
||||
public class DragonTeethBlock extends Block {
|
||||
|
||||
public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED;
|
||||
|
|
|
@ -65,7 +65,6 @@ public class FuMO25BlockEntity extends BlockEntity implements MenuProvider, GeoB
|
|||
public int tick = 0;
|
||||
|
||||
protected final ContainerEnergyData dataAccess = new ContainerEnergyData() {
|
||||
// TODO energy
|
||||
@Override
|
||||
public int get(int pIndex) {
|
||||
return switch (pIndex) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -26,7 +26,7 @@ public class InsidiousItemRenderer extends GeoItemRenderer<InsidiousItem> {
|
|||
|
||||
public InsidiousItemRenderer() {
|
||||
super(new InsidiousItemModel());
|
||||
// TODO render layer
|
||||
// TODO layer
|
||||
// this.addRenderLayer(new InsidiousLayer(this));
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ public class VectorItemRenderer extends GeoItemRenderer<VectorItem> {
|
|||
super(new VectorItemModel());
|
||||
// TODO layer
|
||||
|
||||
// // TODO layer
|
||||
// this.addRenderLayer(new VectorLayer(this));
|
||||
|
||||
this.renderArms = false;
|
||||
|
|
|
@ -128,12 +128,6 @@ public class CannonShellEntity extends FastThrowableProjectile implements GeoEnt
|
|||
}
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.HE_5_INCHES.get();
|
||||
|
|
|
@ -25,12 +25,6 @@ public class FlareDecoyEntity extends Entity {
|
|||
super(ModEntities.FLARE_DECOY.get(), level);
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected void readAdditionalSaveData(@NotNull CompoundTag compoundTag) {
|
||||
}
|
||||
|
|
|
@ -74,12 +74,6 @@ public class GunGrenadeEntity extends FastThrowableProjectile implements GeoEnti
|
|||
this.charged = charged;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.GRENADE_40MM.get();
|
||||
|
|
|
@ -51,12 +51,6 @@ public class HandGrenadeEntity extends FastThrowableProjectile implements GeoEnt
|
|||
this.fuse = fuse;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.HAND_GRENADE.get();
|
||||
|
|
|
@ -51,12 +51,6 @@ public class HeliRocketEntity extends FastThrowableProjectile implements GeoEnti
|
|||
this.explosionRadius = explosionRadius;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.ROCKET.get();
|
||||
|
|
|
@ -78,12 +78,6 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
|
|||
this.monsterMultiplier = monsterMultiplier;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.JAVELIN_MISSILE.get();
|
||||
|
|
|
@ -22,12 +22,6 @@ public class MelonBombEntity extends FastThrowableProjectile {
|
|||
super(ModEntities.MELON_BOMB.get(), entity, level);
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return Items.MELON;
|
||||
|
|
|
@ -52,12 +52,6 @@ public class RgoGrenadeEntity extends FastThrowableProjectile implements GeoEnti
|
|||
this.fuse = fuse;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.RGO_GRENADE.get();
|
||||
|
|
|
@ -51,12 +51,6 @@ public class SmallCannonShellEntity extends FastThrowableProjectile implements G
|
|||
this.explosionRadius = explosionRadius;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.SMALL_SHELL.get();
|
||||
|
|
|
@ -56,13 +56,6 @@ public class TaserBulletEntity extends AbstractArrow implements GeoEntity {
|
|||
super(type, world);
|
||||
this.noCulling = true;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void playerTouch(@NotNull Player pEntity) {
|
||||
}
|
||||
|
|
|
@ -56,12 +56,6 @@ public class WgMissileEntity extends FastThrowableProjectile implements GeoEntit
|
|||
this.explosionRadius = explosionRadius;
|
||||
}
|
||||
|
||||
// TODO AEP
|
||||
// @Override
|
||||
// public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
// return NetworkHooks.getEntitySpawningPacket(this);
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
return ModItems.WIRE_GUIDE_MISSILE.get();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
// TODO register cap
|
||||
// @Override
|
||||
// public ICapabilityProvider initCapabilities(ItemStack stack, CompoundTag tag) {
|
||||
// return new ItemEnergyProvider(stack, energyCapacity.get());
|
||||
// }
|
||||
|
||||
@Override
|
||||
public int getBarColor(@NotNull ItemStack pStack) {
|
||||
return 0xFFFF00;
|
||||
|
|
Loading…
Add table
Reference in a new issue