User Tools

Site Tools


tutorial:1.14:blockappearance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:1.14:blockappearance [2020/01/17 14:03] – Add Environment annotations jamieswhiteshirttutorial:1.14:blockappearance [2020/01/17 14:04] (current) – RenderType does not require Environment annotation jamieswhiteshirt
Line 46: Line 46:
 To do this we override ''getRenderType'' in our block class and return ''BlockRenderType.INVISIBLE'': To do this we override ''getRenderType'' in our block class and return ''BlockRenderType.INVISIBLE'':
 <code java> <code java>
-    @Environment(EnvType.CLIENT) 
     @Override     @Override
     public BlockRenderType getRenderType(BlockState blockState) {     public BlockRenderType getRenderType(BlockState blockState) {
tutorial/1.14/blockappearance.txt · Last modified: 2020/01/17 14:04 by jamieswhiteshirt