用户:
治愈绾兮查看:0 回复:0 评论:0 创建时间:2021-11-20T11:41:24
这里呢用Object.getOwnPropertyNames()函数输出了一下 世界的方法: url,entityQuota,onRespawn,nextRespawn,createEntity,querySelector,querySelectorAll,testSelector,addCollisionFilter,removeCollisionFilter,clearCollisionFilters,collisionFilters,raycast,searchBox,animate,getAni喵s,getEntityAni喵s,getPlayerAni喵s,onTick,nextTick,onTakeDamage,nextTakeDamage,onDie,nextDie,onPlayerJoin,nextPlayerJoin,onPlayerLeave,nextPlayerLeave,onEntityCreate,nextEntityCreate,onEntityDestroy,nextEntityDestroy,say,onChat,nextChat,onClick,nextClick,onPress,nextPress,onRelease,nextRelease,onEntityContact,nextEntityContact,onEntitySeparate,nextEntitySeparate,onVoxelContact,nextVoxelContact,onVoxelSeparate,nextVoxelSeparate,onFluidEnter,nextFluidEnter,onFluidLeave,nextFluidLeave,zones,addZone,removeZone,onInteract,nextInteract,sound,projectName,currentTick,lightMode,sunPhase,sunFrequency,lunarPhase,sunDirection,sunLight,skyLeftLight,skyRightLight,skyBottomLight,skyTopLight,skyFrontLight,skyBackLight,fogColor,fogStartDistance,fogHeightOffset,fogHeightFalloff,fogUnifor喵ensity,maxFog,snowDensity,snowSizeLo,snowSizeHi,snowFallSpeed,snowSpinSpeed,snowColor,snowTexture,rainDensity,rainDirection,rainSpeed,rainSizeLo,rainSizeHi,rainInterference,rainColor,gravity,airFriction,breakVoxelSound,placeVoxelSound,playerJoinSound,playerLeaveSound,ambientSound 玩家的方法: directMessage,onChat,nextChat,onPress,nextPress,onRelease,nextRelease,onRespawn,nextRespawn,forceRespawn,dialog,cancelDialogs,link,wearables,addWearable,removeWearable,sound,animate,getAni喵s,name,userKey,boxId,url,spawnPoint,movementBounds,scale,color,metalness,emissive,shininess,invisible,showName,dead,colorLUT,cameraMode,cameraEntity,cameraTarget,cameraUp,cameraPosition,canFly,spectator,walkSpeed,walkAcceleration,runSpeed,runAcceleration,crouchSpeed,crouchAcceleration,swimSpeed,swimAcceleration,flySpeed,flyAcceleration,jumpSpeedFactor,jumpAccelerationFactor,jumpPower,doubleJumpPower,moveState,walkState,walkButton,crouchButton,jumpButton,enableAction0,enableAction1,action0Button,action1Button,enableJump,enableDoubleJump,enable3DCursor,facingDirection,cameraPitch,spawnSound,jumpSound,doubleJumpSound,landSound,crouchSound,stepSound,swimSound,action0Sound,action1Sound,enterWaterSound,leaveWaterSound,startFlySound,stopFlySound,music,muted,skinInvisible 实体的方法: tags,addTag,removeTag,hasTag,destroy,onDestroy,nextDestroy,onTakeDamage,nextTakeDamage,onDie,nextDie,hurt,say,animate,getAni喵s,onClick,nextClick,onEntityContact,nextEntityContact,onEntitySeparate,nextEntitySeparate,onVoxelContact,nextVoxelContact,onVoxelSeparate,nextVoxelSeparate,onFluidEnter,nextFluidEnter,onFluidLeave,nextFluidLeave,onInteract,nextInteract,sound,id,destroyed,position,velocity,bounds,mass,friction,restitution,collides,gravity,fixed,contactForce,entityContacts,voxelContacts,fluidContacts,mesh,meshInvisible,meshScale,meshOrientation,meshOffset,meshColor,meshMetalness,meshEmissive,meshShininess,enableDamage,showHealthBar,hp,maxHp,isPlayer,particleRate,particleRateSpread,particleLimit,particleColor,particleSize,particleSizeSpread,particleLifetime,particleLifetimeSpread,particleVelocity,particleVelocitySpread,particleDamping,particleAcceleration,particleNoise,particleNoiseFrequency,particleTarget,particleTargetWeight,enableInteract,interactColor,interactHint,interactRadius,chatSound,hurtSound,dieSound,interactSound,player