Advertisement
Gamebuster

Untitled

Jul 9th, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. package com.gamebuster19901.dungeonforge.client.render;
  2.  
  3. import java.util.List;
  4.  
  5. import net.minecraft.block.state.IBlockState;
  6. import net.minecraft.client.renderer.block.model.BakedQuad;
  7. import net.minecraft.client.renderer.block.model.IBakedModel;
  8. import net.minecraft.client.renderer.block.model.ItemOverrideList;
  9. import net.minecraft.client.renderer.texture.TextureAtlasSprite;
  10. import net.minecraft.util.EnumFacing;
  11.  
  12. public final class NonOccludedModel implements IBakedModel {
  13.  
  14. private final IBakedModel model;
  15.  
  16. public NonOccludedModel(IBakedModel model) {
  17. this.model = model;
  18. }
  19.  
  20. @Override
  21. public List<BakedQuad> getQuads(IBlockState state, EnumFacing side, long rand) {
  22. return model.getQuads(state, side, rand);
  23. }
  24.  
  25. @Override
  26. public boolean isAmbientOcclusion() {
  27. return model.isAmbientOcclusion();
  28. }
  29.  
  30. @Override
  31. public boolean isGui3d() {
  32. return model.isGui3d();
  33. }
  34.  
  35. @Override
  36. public boolean isBuiltInRenderer() {
  37. return model.isBuiltInRenderer();
  38. }
  39.  
  40. @Override
  41. public TextureAtlasSprite getParticleTexture() {
  42. return model.getParticleTexture();
  43. }
  44.  
  45. @Override
  46. public ItemOverrideList getOverrides() {
  47. return model.getOverrides();
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement