Skip to content

Instantly share code, notes, and snippets.

@Barteks2x
Created January 7, 2018 13:28
Show Gist options
  • Save Barteks2x/5d89e6d989c9e58dcd1f1d2a4d3ec949 to your computer and use it in GitHub Desktop.
Save Barteks2x/5d89e6d989c9e58dcd1f1d2a4d3ec949 to your computer and use it in GitHub Desktop.
stdin
switch (enumblockrendertype)
{
case MODEL:
IBakedModel model = this.getModelForState(state);
state = state.getBlock().getExtendedState(state, blockAccess, pos);
return this.blockModelRenderer.renderModel(blockAccess, model, state, pos, bufferBuilderIn, true);
case ENTITYBLOCK_ANIMATED:
return false;
case LIQUID:
return this.fluidRenderer.renderFluid(blockAccess, state, pos, bufferBuilderIn);
default:
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment