tutorial:fluids
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:fluids [2019/09/24 15:02] – code style alexiy | tutorial:fluids [2019/09/24 15:17] – more code style alexiy | ||
---|---|---|---|
Line 259: | Line 259: | ||
public Item getBucketItem() | public Item getBucketItem() | ||
{ | { | ||
- | return | + | return |
} | } | ||
| | ||
Line 266: | Line 266: | ||
{ | { | ||
// | // | ||
- | return | + | return |
} | } | ||
Line 272: | Line 272: | ||
public Fluid getFlowing() | public Fluid getFlowing() | ||
{ | { | ||
- | return | + | return |
} | } | ||
Line 278: | Line 278: | ||
public Fluid getStill() | public Fluid getStill() | ||
{ | { | ||
- | return | + | return |
} | } | ||
Line 284: | Line 284: | ||
public boolean matchesType(Fluid fluid_1) | public boolean matchesType(Fluid fluid_1) | ||
{ | { | ||
- | return fluid_1==[ModInitializer].flowingAcid || fluid_1==[ModInitializer].stillAcid; | + | return fluid_1==Mod.flowingAcid || fluid_1==Mod.stillAcid; |
} | } | ||
| | ||
Line 322: | Line 322: | ||
public Sprite[] getFluidSprites(ExtendedBlockView extendedBlockView, | public Sprite[] getFluidSprites(ExtendedBlockView extendedBlockView, | ||
{ | { | ||
- | return new Sprite[]{stillAcidSprite, | + | return new Sprite[] {stillAcidSprite, |
} | } | ||
Line 335: | Line 335: | ||
// registering the same renderer for both fluid variants is intentional | // registering the same renderer for both fluid variants is intentional | ||
- | FluidRenderHandlerRegistry.INSTANCE.register([ModInitializer].stillAcid, acidRenderHandler); | + | FluidRenderHandlerRegistry.INSTANCE.register(Mod.stillAcid, acidRenderHandler); |
- | FluidRenderHandlerRegistry.INSTANCE.register([ModInitializer].flowingAcid, | + | FluidRenderHandlerRegistry.INSTANCE.register(Mod.flowingAcid, |
</ | </ | ||
tutorial/fluids.txt · Last modified: 2023/05/04 11:31 by solidblock