User Tools

Site Tools


tutorial:fluids

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
tutorial:fluids [2020/02/11 12:07]
upcraftlp Registry#add() -> Registry.register()
tutorial:fluids [2020/02/22 02:15] (current)
earthcomputer Mappings + minor fixes
Line 45: Line 45:
  */  */
  @Override  @Override
- protected boolean ​method_15777(FluidState fluidState, BlockView blockView, BlockPos blockPos, Fluid fluid, Direction direction)+ protected boolean ​canBeReplacedWith(FluidState fluidState, BlockView blockView, BlockPos blockPos, Fluid fluid, Direction direction)
  {  {
  return false;  return false;
Line 61: Line 61:
   
  /**  /**
- * Water returns 1. Lava returns ​in the Overworld and in the Nether.+ * Water returns 1. Lava returns ​in the Overworld and in the Nether.
  */  */
  @Override  @Override
Line 293: Line 293:
  final Identifier listenerId = new Identifier(fluidId.getNamespace(),​ fluidId.getPath() + "​_reload_listener"​);​  final Identifier listenerId = new Identifier(fluidId.getNamespace(),​ fluidId.getPath() + "​_reload_listener"​);​
   
- final Sprite[] fluidSprites = new Sprite[] ​{ null, null };+ final Sprite[] fluidSprites = { null, null };
   
  ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(new SimpleSynchronousResourceReloadListener()  ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(new SimpleSynchronousResourceReloadListener()
tutorial/fluids.txt ยท Last modified: 2020/02/22 02:15 by earthcomputer