使手动摇轮椅时像划船一样收起手臂

This commit is contained in:
Light_Quanta 2024-12-28 02:32:01 +08:00
parent 7bbf8138c9
commit 5baedcae43
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
2 changed files with 9 additions and 2 deletions

View file

@ -9,6 +9,7 @@ import com.atsuishio.superbwarfare.item.ContainerBlockItem;
import com.atsuishio.superbwarfare.tools.CustomExplosion; import com.atsuishio.superbwarfare.tools.CustomExplosion;
import com.atsuishio.superbwarfare.tools.EntityFindUtil; import com.atsuishio.superbwarfare.tools.EntityFindUtil;
import com.atsuishio.superbwarfare.tools.ParticleTool; import com.atsuishio.superbwarfare.tools.ParticleTool;
import net.minecraft.client.Minecraft;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.protocol.Packet; import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.game.ClientGamePacketListener; import net.minecraft.network.protocol.game.ClientGamePacketListener;
@ -221,7 +222,12 @@ public class WheelChairEntity extends MobileVehicleEntity implements GeoEntity,
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.BOAT_PADDLE_LAND, SoundSource.PLAYERS, 1, 1); serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.BOAT_PADDLE_LAND, SoundSource.PLAYERS, 1, 1);
} }
player.causeFoodExhaustion(0.03F); player.causeFoodExhaustion(0.03F);
// TODO 手动摇轮椅时像划船一样收起物品
var localPlayer = Minecraft.getInstance().player;
if (localPlayer != null && player.getUUID().equals(localPlayer.getUUID())) {
localPlayer.handsBusy = true;
}
this.forwardInputDown = false; this.forwardInputDown = false;
this.backInputDown = false; this.backInputDown = false;
} }

View file

@ -2,4 +2,5 @@ public net.minecraft.server.level.DistanceManager f_140764_ # playerTicketManage
public net.minecraft.server.level.DistanceManager$PlayerTicketTracker f_140905_ # viewDistance public net.minecraft.server.level.DistanceManager$PlayerTicketTracker f_140905_ # viewDistance
public net.minecraft.server.level.DistanceManager$PlayerTicketTracker public net.minecraft.server.level.DistanceManager$PlayerTicketTracker
public net.minecraft.client.multiplayer.ClientLevel m_142646_()Lnet/minecraft/world/level/entity/LevelEntityGetter; # getEntities public net.minecraft.client.multiplayer.ClientLevel m_142646_()Lnet/minecraft/world/level/entity/LevelEntityGetter; # getEntities
public net.minecraft.client.renderer.culling.Frustum f_252406_ # matrix public net.minecraft.client.renderer.culling.Frustum f_252406_ # matrix
public net.minecraft.client.player.LocalPlayer f_108611_ # handsBusy