net.minecraft.client.renderer.block.model.ItemOverrideList Java Examples
The following examples show how to use
net.minecraft.client.renderer.block.model.ItemOverrideList.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TexturedItemModel.java From OpenModsLib with MIT License | 5 votes |
@Override public IBakedModel bake(IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) { final IModel untexturedModel = getModel(this.untexturedModel); final IBakedModel untexturedBakedModel = untexturedModel.bake(new ModelStateComposition(state, untexturedModel.getDefaultState()), format, bakedTextureGetter); final IModel texturedModel = getModel(this.texturedModel); final IBakedModel texturedBakedModel = texturedModel.bake(new ModelStateComposition(state, texturedModel.getDefaultState()), format, bakedTextureGetter); final ItemOverrideList overrides = new TexturedItemOverrides(untexturedBakedModel, texturedModel, texturedBakedModel.getOverrides().getOverrides(), textures, state, format, bakedTextureGetter); return new BakedModel(untexturedBakedModel, PerspectiveMapWrapper.getTransforms(state), overrides); }
Example #2
Source File: ModelFilter.java From BetterChests with GNU Lesser General Public License v3.0 | 5 votes |
@Override public ItemOverrideList getOverrides() { return new ItemOverrideList(Collections.emptyList()) { @Override public IBakedModel handleItemState(IBakedModel originalModel, ItemStack stack, World world, EntityLivingBase entity) { if (ItemFilter.getInventoryFor(stack).isBlacklist()) { return blacklist; } else { return whitelist; } } }; }
Example #3
Source File: ClientProxy.java From BetterChests with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void preInit() { CustomModelLoader.INSTANCE.registerModel(new ResourceLocation("betterchests:models/block/betterchest"), (a, b, c) -> new BuiltInModel(TESRBChest.TRANSFORMS, ItemOverrideList.NONE)); CustomModelLoader.INSTANCE.registerModel(new ResourceLocation("betterchests:models/item/filter"), new ModelFilter()); CustomModelLoader.INSTANCE.registerModel(new ResourceLocation("betterchests:models/item/betterportablebarrel"), new ModelPortableBarrel()); keyBind = new KeyBinding("betterchests.keybind.openbag", Keyboard.KEY_ADD, "betterchests:keybind.category"); }
Example #4
Source File: ModelNullifierBaked.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return ModelNullifierBakedOverrideHandler.INSTANCE; }
Example #5
Source File: TexturedItemModel.java From OpenModsLib with MIT License | 4 votes |
@Override public ItemOverrideList getOverrides() { return overrideList; }
Example #6
Source File: TexturedItemModel.java From OpenModsLib with MIT License | 4 votes |
public BakedModel(IBakedModel base, ImmutableMap<TransformType, TRSRTransformation> cameraTransforms, ItemOverrideList itemOverrideList) { super(base, cameraTransforms); this.overrideList = itemOverrideList; }
Example #7
Source File: ItemStateOverrideList.java From OpenModsLib with MIT License | 4 votes |
@Override public ItemOverrideList getOverrides() { return ItemStateOverrideList.this; }
Example #8
Source File: BakedModelAdapter.java From OpenModsLib with MIT License | 4 votes |
@Override public ItemOverrideList getOverrides() { return base.getOverrides(); }
Example #9
Source File: VariantModel.java From OpenModsLib with MIT License | 4 votes |
@Override public ItemOverrideList getOverrides() { return ItemOverrideList.NONE; }
Example #10
Source File: ModelBChest.java From BetterChests with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return ItemOverrideList.NONE; }
Example #11
Source File: BakedModelHandler.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return new ItemOverrideList(); }
Example #12
Source File: ModelEnderTools.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return BakedEnderToolOverrideHandler.INSTANCE; }
Example #13
Source File: BakedModelCamouflageBlock.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return this.bakedBaseModel.getOverrides(); }
Example #14
Source File: BakedModelBarrel.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return this.bakedBaseModel.getOverrides(); }
Example #15
Source File: BakedModelInserter.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return this.bakedBaseModel.getOverrides(); }
Example #16
Source File: ModelEnderBucket.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return BakedEnderBucketOverrideHandler.INSTANCE; }
Example #17
Source File: BakedWrapper.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return parent.getOverrides(); }
Example #18
Source File: FWSmartModel.java From NOVA-Core with GNU Lesser General Public License v3.0 | 4 votes |
@Override public final ItemOverrideList getOverrides() { return overrides; }
Example #19
Source File: InfuserCoreBakedModel.java From Valkyrien-Skies with Apache License 2.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return inventoryModel.getOverrides(); }
Example #20
Source File: GTBakedTestTube.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ItemOverrideList getOverrides() { return OVERRIDE; }
Example #21
Source File: BakedModelDefaultTexture.java From WearableBackpacks with MIT License | votes |
public ItemOverrideList getOverrides() { return _baseModel.getOverrides(); }