Skip to content
Open
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
3 changes: 3 additions & 0 deletions src/main/java/org/betterx/bclib/blocks/BaseBlock.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.betterx.bclib.blocks;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.betterx.bclib.behaviours.interfaces.BehaviourMetal;
import org.betterx.bclib.behaviours.interfaces.BehaviourStone;
import org.betterx.bclib.behaviours.interfaces.BehaviourWood;
Expand Down Expand Up @@ -53,6 +55,7 @@ public List<ItemStack> getDrops(BlockState state, LootParams.Builder builder) {
* This implementation will load the Block-Model and return it as the Item-Model
*/
@Override
@Environment(EnvType.CLIENT)
public BlockModel getItemModel(ResourceLocation blockId) {
return getBlockModel(blockId, defaultBlockState());
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/betterx/bclib/blocks/BaseLeavesBlock.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.betterx.bclib.blocks;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.betterx.bclib.behaviours.BehaviourBuilders;
import org.betterx.bclib.behaviours.interfaces.BehaviourLeaves;
import org.betterx.bclib.client.render.BCLRenderLayer;
Expand Down Expand Up @@ -113,6 +115,7 @@ public static List<ItemStack> getLeaveDrops(
}

@Override
@Environment(EnvType.CLIENT)
public BlockModel getItemModel(ResourceLocation resourceLocation) {
return getBlockModel(resourceLocation, defaultBlockState());
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/betterx/bclib/blocks/BaseOreBlock.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.betterx.bclib.blocks;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.betterx.bclib.behaviours.BehaviourBuilders;
import org.betterx.bclib.behaviours.interfaces.BehaviourOre;
import org.betterx.bclib.interfaces.BlockModelProvider;
Expand Down Expand Up @@ -145,6 +147,7 @@ public static List<ItemStack> getDroppedItems(
}

@Override
@Environment(EnvType.CLIENT)
public BlockModel getItemModel(ResourceLocation resourceLocation) {
return getBlockModel(resourceLocation, defaultBlockState());
}
Expand Down