Package codechicken.multipart.minecraft
Class McStatePartParticleHandler
java.lang.Object
codechicken.multipart.minecraft.McStatePartParticleHandler
- All Implemented Interfaces:
PartParticleHandler<McStatePart>,StandardPartParticleHandler<McStatePart>
public class McStatePartParticleHandler
extends Object
implements StandardPartParticleHandler<McStatePart>
Created by covers1624 on 7/26/26.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodechicken.lib.vec.Cuboid6getBounds(McStatePart part) Get the bounds of the part.List<net.minecraft.client.renderer.texture.TextureAtlasSprite> getBrokenTextures(McStatePart part) Get all the textures to use when your part is broken.net.minecraft.client.renderer.texture.TextureAtlasSpritegetParticleTexture(McStatePart part, PartRayTraceResult hit) Get the texture to use when breaking/running/landing on a part.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.multipart.api.part.render.StandardPartParticleHandler
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, enableVolumetricBreaking
-
Constructor Details
-
McStatePartParticleHandler
public McStatePartParticleHandler()
-
-
Method Details
-
getBounds
Description copied from interface:StandardPartParticleHandlerGet the bounds of the part.For breaking, places the crumbling particles on the faces of the supplied cuboid.
For broken, enables spawning particles based on the size/location of the cuboid.
- Specified by:
getBoundsin interfaceStandardPartParticleHandler<McStatePart>- Parameters:
part- The part.- Returns:
- The bounds.
-
getParticleTexture
public net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleTexture(McStatePart part, PartRayTraceResult hit) Description copied from interface:StandardPartParticleHandlerGet the texture to use when breaking/running/landing on a part.In the case of running/landing a hit result will be spawned from the players feet to hit your part.
- Specified by:
getParticleTexturein interfaceStandardPartParticleHandler<McStatePart>- Parameters:
part- The part.hit- The current hit result.- Returns:
- The texture. May be
nullto disable.
-
getBrokenTextures
public List<net.minecraft.client.renderer.texture.TextureAtlasSprite> getBrokenTextures(McStatePart part) Description copied from interface:StandardPartParticleHandlerGet all the textures to use when your part is broken.The textures will be randomly mixed together.
- Specified by:
getBrokenTexturesin interfaceStandardPartParticleHandler<McStatePart>- Parameters:
part- The part.- Returns:
- The textures.
-