移除无人机的能量存储Capability
This commit is contained in:
parent
10bec3590d
commit
d98913bb21
1 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,8 @@ import net.minecraft.world.level.Explosion;
|
|||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.phys.AABB;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import net.minecraftforge.common.capabilities.Capability;
|
||||
import net.minecraftforge.common.util.LazyOptional;
|
||||
import net.minecraftforge.event.ForgeEventFactory;
|
||||
import net.minecraftforge.items.ItemHandlerHelper;
|
||||
import net.minecraftforge.network.NetworkHooks;
|
||||
|
@ -155,6 +157,11 @@ public class DroneEntity extends MobileVehicleEntity implements GeoEntity {
|
|||
compound.putInt("KamikazeMode", this.entityData.get(KAMIKAZE_MODE));
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap) {
|
||||
return LazyOptional.empty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readAdditionalSaveData(CompoundTag compound) {
|
||||
super.readAdditionalSaveData(compound);
|
||||
|
|
Loading…
Add table
Reference in a new issue