Class MicroMaterialClient

java.lang.Object
codechicken.microblock.api.MicroMaterialClient

public abstract class MicroMaterialClient extends Object
Created by covers1624 on 23/10/22.
  • Constructor Details

    • MicroMaterialClient

      public MicroMaterialClient()
  • Method Details

    • get

      @Nullable public static @Nullable MicroMaterialClient get(MicroMaterial material)
    • collectParts

      public abstract void collectParts(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable @Nullable net.minecraft.core.BlockPos pos, com.google.common.collect.ImmutableSet<MaskedCuboid> renderCuboids, List<net.minecraft.client.renderer.block.model.BlockModelPart> parts)
      Collect the model parts of this material.
      Parameters:
      level - The level, null when in inventory, otherwise a view from the chunk batching thread.
      pos - The position in world, null when in inventory.
      renderCuboids - The cuboids and their masks we wish to render.
      parts - The parts.
    • addHitEffects

      public void addHitEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
    • addDestroyEffects

      public void addDestroyEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
    • addLandingEffects

      public void addLandingEffects(MicroblockPart part, PartRayTraceResult hit, codechicken.lib.vec.Vector3 entity, int numberOfParticles)
    • addRunningEffects

      public void addRunningEffects(MicroblockPart part, PartRayTraceResult hit, net.minecraft.world.entity.Entity entity)