Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class EntityConstructorInspection : BaseInspection() {
return
}

if (aClass.extendsOrImplements(McpConstants.ENTITY_FX)) {
return
}

val module = ModuleUtilCore.findModuleForPsiElement(aClass) ?: return

val instance = MinecraftFacet.getInstance(module) ?: return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ object McpConstants {

const val TEXT_FORMATTING = "net.minecraft.util.text.TextFormatting"
const val ENTITY = "net.minecraft.entity.Entity"
const val ENTITY_FX = "net.minecraft.client.particle.EntityFX"
const val WORLD = "net.minecraft.world.World"
const val ITEM_STACK = "net.minecraft.item.ItemStack"
const val BLOCK = "net.minecraft.block.Block"
Expand Down